public class ReaderDataSource extends Object implements DataSource
| Constructor and Description |
|---|
ReaderDataSource(Reader reader,
String dataSourceName)
Create the DataSource from the Reader.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDataSourceName() |
InputStream |
getInputStream()
Convert the Reader into an InputStream.
|
String |
getNiceFileName(boolean shortNames,
String inputFileName)
Return the dataSourceName via the
DataSource Interface method. |
void |
setDataSourceName(String dataSourceName) |
String |
toString() |
public InputStream getInputStream() throws IOException
Note: This uses the default encoding.
getInputStream in interface DataSourceIOExceptionpublic String getNiceFileName(boolean shortNames, String inputFileName)
DataSource Interface method.
Both the parameters are ignored
getNiceFileName in interface DataSourceshortNames - ignoredinputFileName - ignoredpublic String getDataSourceName()
public void setDataSourceName(String dataSourceName)
dataSourceName - the dataSourceName to setCopyright © 2002-2014 InfoEther. All Rights Reserved.