public class FileInputState extends FileState implements IInputState
getReader(InputStream, String)
to get a reader of the right
type.FileState._FILE_TYPE
Modifier and Type | Field and Description |
---|---|
String |
optionalInChIHeader |
String |
optionalInChIKeyHeader |
String |
optionalSMILESHeader |
currentRecord, extensionDescriptions, file, fileFormat, filename, hashCode, lastModified, length, MSG_CANTCREATEFILE, MSG_ERRORSAVE, MSG_FILEDONOTEXISTS, MSG_OPEN, MSG_UNSUPPORTEDFORMAT, offset, responseType, supportedExtensions
Constructor and Description |
---|
FileInputState() |
FileInputState(File file) |
FileInputState(String filename) |
Modifier and Type | Method and Description |
---|---|
static org.openscience.cdk.io.iterator.IIteratingChemObjectReader |
getI5DReader(File file) |
static org.openscience.cdk.io.iterator.IIteratingChemObjectReader |
getI5DReader(InputStream in) |
static org.openscience.cdk.io.iterator.IIteratingChemObjectReader |
getI5ZReader(File file) |
String |
getOptionalInChIHeader() |
String |
getOptionalInChIKeyHeader() |
String |
getOptionalSMILESHeader() |
static IRawReader<IStructureRecord> |
getRawReader(InputStream stream,
String extension,
org.openscience.cdk.io.formats.IChemFormat format) |
org.openscience.cdk.io.iterator.IIteratingChemObjectReader |
getReader() |
static org.openscience.cdk.io.iterator.IIteratingChemObjectReader |
getReader(File file) |
static org.openscience.cdk.io.iterator.IIteratingChemObjectReader |
getReader(File file,
org.openscience.cdk.io.formats.IChemFormat format) |
static org.openscience.cdk.io.iterator.IIteratingChemObjectReader |
getReader(InputStream stream,
String ext) |
static org.openscience.cdk.io.iterator.IIteratingChemObjectReader |
getReader(InputStream stream,
String extension,
org.openscience.cdk.io.formats.IChemFormat format) |
void |
setOptionalInChIHeader(String optionalInChIHeader) |
void |
setOptionalInChIKeyHeader(String optionalInChIKeyHeader) |
void |
setOptionalSMILESHeader(String optionalSMILESHeader) |
createFile, equals, getCurrentRecord, getExtensionDescriptions, getExtensions, getFile, getFileFormat, getFilename, getHashCode, getLastModified, getLength, getOffset, getResponseType, getSupportedExtDescriptions, getSupportedExtensions, match, match, setCurrentRecord, setFile, setFile, setFilename, setHashCode, setLastModified, setLength, setOffset, setResponseType, setSupportedExtDescriptions, setSupportedExtensions, toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFileFormat
getCurrentRecord, getResponseType, setCurrentRecord, setResponseType
public String optionalSMILESHeader
public String optionalInChIKeyHeader
public String optionalInChIHeader
public FileInputState()
public FileInputState(String filename)
public FileInputState(File file)
public String getOptionalInChIKeyHeader()
public void setOptionalInChIKeyHeader(String optionalInChIKeyHeader)
public String getOptionalInChIHeader()
public void setOptionalInChIHeader(String optionalInChIHeader)
public String getOptionalSMILESHeader()
public void setOptionalSMILESHeader(String optionalSMILESHeader)
public org.openscience.cdk.io.iterator.IIteratingChemObjectReader getReader() throws AmbitIOException
getReader
in interface IInputState
AmbitIOException
public static org.openscience.cdk.io.iterator.IIteratingChemObjectReader getReader(File file) throws FileNotFoundException, AmbitIOException, org.openscience.cdk.exception.CDKException
FileNotFoundException
AmbitIOException
org.openscience.cdk.exception.CDKException
public static org.openscience.cdk.io.iterator.IIteratingChemObjectReader getReader(InputStream stream, String ext) throws AmbitIOException, org.openscience.cdk.exception.CDKException
AmbitIOException
org.openscience.cdk.exception.CDKException
public static org.openscience.cdk.io.iterator.IIteratingChemObjectReader getReader(File file, org.openscience.cdk.io.formats.IChemFormat format) throws AmbitIOException, org.openscience.cdk.exception.CDKException, FileNotFoundException
AmbitIOException
org.openscience.cdk.exception.CDKException
FileNotFoundException
public static org.openscience.cdk.io.iterator.IIteratingChemObjectReader getI5ZReader(File file) throws FileNotFoundException, AmbitIOException, org.openscience.cdk.exception.CDKException
file
- FileNotFoundException
AmbitIOException
org.openscience.cdk.exception.CDKException
public static org.openscience.cdk.io.iterator.IIteratingChemObjectReader getI5DReader(InputStream in) throws AmbitIOException, org.openscience.cdk.exception.CDKException
in
- FileNotFoundException
AmbitIOException
org.openscience.cdk.exception.CDKException
public static org.openscience.cdk.io.iterator.IIteratingChemObjectReader getI5DReader(File file) throws FileNotFoundException, AmbitIOException, org.openscience.cdk.exception.CDKException
FileNotFoundException
AmbitIOException
org.openscience.cdk.exception.CDKException
public static IRawReader<IStructureRecord> getRawReader(InputStream stream, String extension, org.openscience.cdk.io.formats.IChemFormat format) throws org.openscience.cdk.exception.CDKException, AmbitIOException
org.openscience.cdk.exception.CDKException
AmbitIOException
public static org.openscience.cdk.io.iterator.IIteratingChemObjectReader getReader(InputStream stream, String extension, org.openscience.cdk.io.formats.IChemFormat format) throws AmbitIOException, org.openscience.cdk.exception.CDKException
AmbitIOException
org.openscience.cdk.exception.CDKException
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.