ambit2.core.io
Class FileInputState

Package class diagram package FileInputState
java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by ambit2.core.io.FileState
          extended by ambit2.core.io.FileInputState
All Implemented Interfaces:
ambit2.base.interfaces.IInputOutputState, IInputState, com.jgoodies.binding.beans.Observable, java.io.Serializable

public class FileInputState
extends FileState
implements IInputState

Use getReader(InputStream, String) to get a reader of the right type.

See Also:
Serialized Form

Field Summary
static int CML_INDEX
           
static int CSV_INDEX
           
static int EURAS_INDEX
           
static java.lang.String[] extensionDescription
           
static java.lang.String[] extensions
           
static int HIN_INDEX
           
static int ICHI_INDEX
           
static int INCHI_INDEX
           
static int MOL_INDEX
           
static int PDB_INDEX
           
static int SDF_INDEX
           
static int SMI_INDEX
           
static int TXT_INDEX
           
static int XLS_INDEX
           
 
Fields inherited from class ambit2.core.io.FileState
currentRecord, extensionDescriptions, file, fileFormat, filename, hashCode, lastModified, length, MSG_CANTCREATEFILE, MSG_ERRORSAVE, MSG_FILEDONOTEXISTS, MSG_OPEN, MSG_UNSUPPORTEDFORMAT, offset, responseType, supportedExtensions
 
Constructor Summary
FileInputState()
           
FileInputState(java.io.File file)
           
FileInputState(java.lang.String filename)
           
 
Method Summary
 org.openscience.cdk.io.iterator.IIteratingChemObjectReader getReader()
           
static org.openscience.cdk.io.iterator.IIteratingChemObjectReader getReader(java.io.InputStream stream, java.lang.String ext)
           
static org.openscience.cdk.io.iterator.IIteratingChemObjectReader getReader(java.io.InputStream stream, java.lang.String ext, org.openscience.cdk.io.formats.IChemFormat format)
           
 
Methods inherited from class ambit2.core.io.FileState
createFile, equals, getCurrentRecord, getFile, getFilename, getHashCode, getLastModified, getLength, getOffset, getResponseType, getSupportedExtDescriptions, getSupportedExtensions, match, match, setCurrentRecord, setFile, setFilename, setHashCode, setLastModified, setLength, setOffset, setResponseType, setSupportedExtDescriptions, setSupportedExtensions, toString
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ambit2.base.interfaces.IInputOutputState
getCurrentRecord, getResponseType, setCurrentRecord, setResponseType
 

Field Detail

SDF_INDEX

public static final transient int SDF_INDEX
See Also:
Constant Field Values

CSV_INDEX

public static final transient int CSV_INDEX
See Also:
Constant Field Values

SMI_INDEX

public static final transient int SMI_INDEX
See Also:
Constant Field Values

TXT_INDEX

public static final transient int TXT_INDEX
See Also:
Constant Field Values

MOL_INDEX

public static final transient int MOL_INDEX
See Also:
Constant Field Values

ICHI_INDEX

public static final transient int ICHI_INDEX
See Also:
Constant Field Values

INCHI_INDEX

public static final transient int INCHI_INDEX
See Also:
Constant Field Values

CML_INDEX

public static final transient int CML_INDEX
See Also:
Constant Field Values

HIN_INDEX

public static final transient int HIN_INDEX
See Also:
Constant Field Values

PDB_INDEX

public static final transient int PDB_INDEX
See Also:
Constant Field Values

XLS_INDEX

public static final transient int XLS_INDEX
See Also:
Constant Field Values

EURAS_INDEX

public static final transient int EURAS_INDEX
See Also:
Constant Field Values

extensions

public static final transient java.lang.String[] extensions

extensionDescription

public static final transient java.lang.String[] extensionDescription
Constructor Detail

FileInputState

public FileInputState()

FileInputState

public FileInputState(java.lang.String filename)

FileInputState

public FileInputState(java.io.File file)
Method Detail

getReader

public org.openscience.cdk.io.iterator.IIteratingChemObjectReader getReader()
                                                                     throws ambit2.base.exceptions.AmbitIOException
Specified by:
getReader in interface IInputState
Throws:
ambit2.base.exceptions.AmbitIOException

getReader

public static org.openscience.cdk.io.iterator.IIteratingChemObjectReader getReader(java.io.InputStream stream,
                                                                                   java.lang.String ext)
                                                                            throws ambit2.base.exceptions.AmbitIOException
Throws:
ambit2.base.exceptions.AmbitIOException

getReader

public static org.openscience.cdk.io.iterator.IIteratingChemObjectReader getReader(java.io.InputStream stream,
                                                                                   java.lang.String ext,
                                                                                   org.openscience.cdk.io.formats.IChemFormat format)
                                                                            throws ambit2.base.exceptions.AmbitIOException
Throws:
ambit2.base.exceptions.AmbitIOException