ambit2.core.io
Class FileOutputState
java.lang.Object
com.jgoodies.binding.beans.Model
ambit2.core.io.FileState
ambit2.core.io.FileOutputState
- All Implemented Interfaces:
- ambit2.base.interfaces.IInputOutputState, IOutputState, com.jgoodies.binding.beans.Observable, java.io.Serializable
public class FileOutputState
- extends FileState
- implements IOutputState
Use getWriter(OutputStream, String)
to get a writer of the right type.
- See Also:
- Serialized Form
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 |
Method Summary |
static java.lang.String |
getResponseType(java.lang.String ext)
|
org.openscience.cdk.io.IChemObjectWriter |
getWriter()
|
static org.openscience.cdk.io.IChemObjectWriter |
getWriter(java.io.OutputStream stream,
java.lang.String ext)
|
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 |
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
CML_INDEX
public static final transient int CML_INDEX
- See Also:
- Constant Field Values
MOL_INDEX
public static final transient int MOL_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
XYZ_INDEX
public static final transient int XYZ_INDEX
- See Also:
- Constant Field Values
XLS_INDEX
public static final transient int XLS_INDEX
- See Also:
- Constant Field Values
HTML_INDEX
public static final transient int HTML_INDEX
- See Also:
- Constant Field Values
PDF_INDEX
public static final transient int PDF_INDEX
- See Also:
- Constant Field Values
SVG_INDEX
public static final transient int SVG_INDEX
- See Also:
- Constant Field Values
JPG_INDEX
public static final transient int JPG_INDEX
- See Also:
- Constant Field Values
PNG_INDEX
public static final transient int PNG_INDEX
- See Also:
- Constant Field Values
RTF_INDEX
public static final transient int RTF_INDEX
- See Also:
- Constant Field Values
extensions
public static final transient java.lang.String[] extensions
extensionDescription
public static final transient java.lang.String[] extensionDescription
FileOutputState
public FileOutputState()
FileOutputState
public FileOutputState(java.lang.String filename)
FileOutputState
public FileOutputState(java.io.File file)
getWriter
public org.openscience.cdk.io.IChemObjectWriter getWriter()
throws ambit2.base.exceptions.AmbitIOException
- Specified by:
getWriter
in interface IOutputState
- Throws:
ambit2.base.exceptions.AmbitIOException
getWriter
public static org.openscience.cdk.io.IChemObjectWriter getWriter(java.io.OutputStream stream,
java.lang.String ext)
throws ambit2.base.exceptions.AmbitIOException
- Throws:
ambit2.base.exceptions.AmbitIOException
getResponseType
public static java.lang.String getResponseType(java.lang.String ext)