public class ChemObjectBatchProcessing extends BatchProcessing
| Modifier and Type | Field and Description |
|---|---|
protected org.openscience.cdk.interfaces.IChemObject |
chemObject |
protected static int |
CSV_INDEX |
static String[] |
extensions |
static String[] |
extensions_descr |
protected org.openscience.cdk.io.iterator.IIteratingChemObjectReader |
reader |
protected static int |
SDF_INDEX |
protected static int |
SMI_INDEX |
protected static int |
TXT_INDEX |
protected org.openscience.cdk.io.IChemObjectWriter |
writer |
configFile, dateCreated, dateLastSaved, deleteConfigOnSuccess, inputFile, logger, MSG_CANTCREATEFILE, MSG_ERRORCOUNTING, MSG_ERRORSAVE, MSG_FILEDONOTEXISTS, MSG_OPEN, MSG_UNSUPPORTEDFORMAT, outputFile, saveStateFrequency, status, STATUS_ABORTED, STATUS_FINISHED, STATUS_NOTINITIALIZED, STATUS_NOTSTARTED, STATUS_PAUSED, STATUS_RUNNING, statusMsg, tmpDir| Constructor and Description |
|---|
ChemObjectBatchProcessing() |
ChemObjectBatchProcessing(File input,
File output) |
ChemObjectBatchProcessing(String input,
String output) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeInputFile() |
void |
closeOutputFile() |
void |
createOutputFile()
Creates
ChemObjectWriter |
protected org.openscience.cdk.io.iterator.IIteratingChemObjectReader |
getReader(FileState file,
boolean monitor) |
boolean |
hasNextRecord() |
void |
openInputFile()
Opens the input file as set by constructor and creates
IteratingChemObjectReader |
void |
processRecord() |
void |
readRecord() |
void |
start() |
void |
writeRecord() |
cancel, close, createConfigFile, equals, getConfigFile, getDateCreated, getDateLastProcessed, getInputFile, getOutputFile, getReadRecordsCount, getSaveStateFrequency, getStatus, getTempDir, getWrittenRecordsCount, isCancelled, isPaused, isRunning, isStatus, loadConfig, pause, saveConfig, saveConfig, setConfigFile, setSaveStateFrequency, setStatus, toStringaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected transient org.openscience.cdk.io.iterator.IIteratingChemObjectReader reader
protected transient org.openscience.cdk.io.IChemObjectWriter writer
protected transient org.openscience.cdk.interfaces.IChemObject chemObject
public static final transient String[] extensions
public static final transient String[] extensions_descr
protected static transient int SDF_INDEX
protected static transient int CSV_INDEX
protected static transient int SMI_INDEX
protected static transient int TXT_INDEX
public ChemObjectBatchProcessing()
public ChemObjectBatchProcessing(String input, String output) throws BatchProcessingException
input - Input file nameoutput - Output file nameBatchProcessingExceptionpublic ChemObjectBatchProcessing(File input, File output) throws BatchProcessingException
input - Input Fileoutput - Output FileBatchProcessingExceptionprotected org.openscience.cdk.io.iterator.IIteratingChemObjectReader getReader(FileState file, boolean monitor) throws BatchProcessingException
BatchProcessingExceptionpublic void openInputFile()
throws BatchProcessingException
IteratingChemObjectReaderopenInputFile in interface IBatchProcessingopenInputFile in class BatchProcessingBatchProcessingExceptionpublic void createOutputFile()
throws BatchProcessingException
ChemObjectWritercreateOutputFile in interface IBatchProcessingcreateOutputFile in class BatchProcessingBatchProcessingExceptionpublic void start()
throws BatchProcessingException
start in interface IBatchProcessingstart in class BatchProcessingBatchProcessingExceptionpublic void closeInputFile()
throws BatchProcessingException
BatchProcessingExceptionpublic void closeOutputFile()
throws BatchProcessingException
BatchProcessingExceptionpublic void processRecord()
throws BatchProcessingException
BatchProcessingExceptionpublic void readRecord()
throws BatchProcessingException
BatchProcessingExceptionpublic void writeRecord()
throws BatchProcessingException
BatchProcessingExceptionpublic boolean hasNextRecord()
Copyright © 2004–2018 Ideaconsult Ltd. All rights reserved.