|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pmd.util.datasource.ReaderDataSource
public class ReaderDataSource
DataSource implementation to read data from a Reader.
| Constructor Summary | |
|---|---|
ReaderDataSource(Reader reader,
String dataSourceName)
Create the DataSource from the Reader. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ReaderDataSource(Reader reader,
String dataSourceName)
| Method Detail |
|---|
public InputStream getInputStream()
throws IOException
Note: This uses the default encoding.
getInputStream in interface DataSourceIOException
public String getNiceFileName(boolean shortNames,
String inputFileName)
DataSource Interface method.
Both the parameters are ignored
getNiceFileName in interface DataSourceshortNames - ignoredinputFileName - ignored
public String getDataSourceName()
public void setDataSourceName(String dataSourceName)
dataSourceName - the dataSourceName to setpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||