|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Marvin record reader.
| Nested Class Summary | |
static class |
MRecordReader.Position
Position in the input file. |
| Method Summary | |
void |
close()
Closes the input stream. |
chemaxon.util.LongVector |
detectRecordPositions(chemaxon.util.IntVector linenums)
Detects positions of records in the input stream. |
MRecordReader |
getEncapsulatedReader()
Gets the encapsulated record reader if it exists. |
long |
getFilePointer()
Gets the current position in the input file. |
java.lang.String |
getFooterAsString()
Gets the footer of the file as a string. |
java.lang.String |
getHeaderAsString()
Gets the header of the file as a string. |
int |
getLineCount()
Get the current line number. |
MolInputStream |
getMolInputStream()
Gets the molecule input stream. |
java.lang.String |
getOptions()
Gets the import options. |
java.lang.String |
getRecognizedFormat()
Gets the recognized file format. |
boolean |
isPropertyRecord()
|
boolean |
isSeekable()
Tests whether the record reader is seekable. |
MRecord |
nextRecord()
Reads the next record. |
void |
seek(long p,
int lcount,
int k)
Sets the file-pointer offset, measured from the beginning of this file, at which the next read or write occurs. |
void |
setProgressMonitor(MProgressMonitor pmon)
Sets the progress monitor. |
MRecord |
skipRecord()
Skips the next record. |
| Method Detail |
public void setProgressMonitor(MProgressMonitor pmon)
pmon - the progress monitor
public MRecord nextRecord()
throws MRecordParseException,
java.io.IOException
MRecordParseException - If the record could not be parsed
java.io.IOException - If I/O error occured
public MRecord skipRecord()
throws MRecordParseException,
java.io.IOException
MRecordParseException - If the record could not be parsed
java.io.IOException - If I/O error occuredpublic java.lang.String getRecognizedFormat()
public java.lang.String getHeaderAsString()
public java.lang.String getFooterAsString()
public java.lang.String getOptions()
public void close()
throws java.io.IOException
java.io.IOException - If I/O error occuredpublic MRecordReader getEncapsulatedReader()
nullpublic MolInputStream getMolInputStream()
public long getFilePointer()
public int getLineCount()
public boolean isSeekable()
true if it is seekable,
false otherwise
public void seek(long p,
int lcount,
int k)
throws java.io.IOException
p - the file pointerlcount - the line count at the specified positionk - the record count at the specified position
java.io.IOException - if pos is less than
0 or if an I/O error occurs.public boolean isPropertyRecord()
public chemaxon.util.LongVector detectRecordPositions(chemaxon.util.IntVector linenums)
throws MolFormatException
linenums - If not null, stores start line numbers of records
in this container.
MolFormatException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||