public class FileOutputState extends FileState implements IOutputState
getWriter(OutputStream, String)
to get a writer of the right type.FileState._FILE_TYPE
currentRecord, extensionDescriptions, file, fileFormat, filename, hashCode, lastModified, length, MSG_CANTCREATEFILE, MSG_ERRORSAVE, MSG_FILEDONOTEXISTS, MSG_OPEN, MSG_UNSUPPORTEDFORMAT, offset, responseType, supportedExtensions
Constructor and Description |
---|
FileOutputState() |
FileOutputState(File file) |
FileOutputState(String filename) |
Modifier and Type | Method and Description |
---|---|
org.openscience.cdk.io.IChemObjectWriter |
getWriter() |
static org.openscience.cdk.io.IChemObjectWriter |
getWriter(OutputStream stream,
String ext) |
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
getCurrentRecord, getResponseType, setCurrentRecord, setResponseType
public FileOutputState()
public FileOutputState(String filename)
public FileOutputState(File file)
public org.openscience.cdk.io.IChemObjectWriter getWriter() throws AmbitIOException
getWriter
in interface IOutputState
AmbitIOException
public static org.openscience.cdk.io.IChemObjectWriter getWriter(OutputStream stream, String ext) throws AmbitIOException
AmbitIOException
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.