ambit2.core.io
Class DelimitedFileReader
java.lang.Object
org.openscience.cdk.io.DefaultChemObjectReader
ambit2.core.io.DelimitedFileReader
- All Implemented Interfaces:
- org.openscience.cdk.io.IChemObjectIO, org.openscience.cdk.io.IChemObjectReader
public class DelimitedFileReader
- extends org.openscience.cdk.io.DefaultChemObjectReader
- implements org.openscience.cdk.io.IChemObjectReader
Reads delimited files (CSV, TXT)
Nested classes/interfaces inherited from interface org.openscience.cdk.io.IChemObjectReader |
org.openscience.cdk.io.IChemObjectReader.Mode |
Fields inherited from class org.openscience.cdk.io.DefaultChemObjectReader |
mode |
Method Summary |
boolean |
accepts(java.lang.Class classObject)
|
void |
close()
|
org.openscience.cdk.io.formats.IResourceFormat |
getFormat()
|
org.openscience.cdk.io.setting.IOSetting[] |
getIOSettings()
|
org.openscience.cdk.interfaces.IChemObject |
read(org.openscience.cdk.interfaces.IChemObject object)
|
void |
setReader(java.io.InputStream reader)
|
void |
setReader(java.io.Reader reader)
|
java.lang.String |
toString()
|
Methods inherited from class org.openscience.cdk.io.DefaultChemObjectReader |
addChemObjectIOListener, fireFrameRead, fireIOSettingQuestion, removeChemObjectIOListener, setReaderMode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.openscience.cdk.io.IChemObjectReader |
setReaderMode |
Methods inherited from interface org.openscience.cdk.io.IChemObjectIO |
addChemObjectIOListener, removeChemObjectIOListener |
format
protected DelimitedFileFormat format
DelimitedFileReader
public DelimitedFileReader(java.io.Reader input,
DelimitedFileFormat format)
- Default delimited file format - CSV
DelimitedFileReader
public DelimitedFileReader(java.io.Reader input)
DelimitedFileReader
public DelimitedFileReader(java.io.InputStream input,
DelimitedFileFormat format)
DelimitedFileReader
public DelimitedFileReader(java.io.InputStream input)
read
public org.openscience.cdk.interfaces.IChemObject read(org.openscience.cdk.interfaces.IChemObject object)
throws org.openscience.cdk.exception.CDKException
- Specified by:
read
in interface org.openscience.cdk.io.IChemObjectReader
- Throws:
org.openscience.cdk.exception.CDKException
setReader
public void setReader(java.io.Reader reader)
throws org.openscience.cdk.exception.CDKException
- Specified by:
setReader
in interface org.openscience.cdk.io.IChemObjectReader
- Throws:
org.openscience.cdk.exception.CDKException
setReader
public void setReader(java.io.InputStream reader)
throws org.openscience.cdk.exception.CDKException
- Specified by:
setReader
in interface org.openscience.cdk.io.IChemObjectReader
- Throws:
org.openscience.cdk.exception.CDKException
getFormat
public org.openscience.cdk.io.formats.IResourceFormat getFormat()
- Specified by:
getFormat
in interface org.openscience.cdk.io.IChemObjectIO
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface org.openscience.cdk.io.IChemObjectIO
- Throws:
java.io.IOException
getIOSettings
public org.openscience.cdk.io.setting.IOSetting[] getIOSettings()
- Specified by:
getIOSettings
in interface org.openscience.cdk.io.IChemObjectIO
- Overrides:
getIOSettings
in class org.openscience.cdk.io.DefaultChemObjectReader
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
accepts
public boolean accepts(java.lang.Class classObject)
- Specified by:
accepts
in interface org.openscience.cdk.io.IChemObjectIO