|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.marvin.io.MRecord
public class MRecord
Record in a multi-molecule file.
| Field Summary | |
|---|---|
static int |
F_MOL_MISSING
Molecule (or reaction) is missing from the record. |
protected long |
fileEndPosition
|
protected long |
fileStartPosition
|
protected MPropertyContainer |
properties
|
| Constructor Summary | |
|---|---|
MRecord()
Default constructor. |
|
MRecord(long start,
long end,
int lineno,
java.lang.String s,
MPropertyContainer p,
int[] lmap)
Creates a record. |
|
MRecord(long start,
long end,
int lineno,
java.lang.String s,
MPropertyContainer p,
int[] lmap,
int descflags)
Creates a record. |
|
| Method Summary | |
|---|---|
java.lang.String |
getEncoding()
Gets the encoding. |
int |
getEndLineCount()
Gets the line number at the ending point. |
long |
getEndPosition()
Gets the end position in the input file. |
int |
getFlags()
Gets the record descriptor flags. |
java.lang.String |
getFormat()
|
int |
getHeaderNewLineCount()
Gets the number of new lines in the molecule header part. |
java.lang.String |
getInputFormat()
Gets the input format. |
int[] |
getLineNumberMap()
Gets the line number to original line number mapping. |
byte[] |
getMolBytes()
Gets the molecule bytes, with preprended header and appended footer if appropriate. |
java.lang.String |
getMolString()
Gets the molecule string, with preprended header and appended footer if appropriate. |
MPropertyContainer |
getPropertyContainer()
Gets the properties. |
int |
getStartLineCount()
Gets the line number at the starting point. |
long |
getStartPosition()
Gets the start position in the input file. |
java.lang.String |
getString()
Gets the record text as string. |
void |
setMolBytes(byte[] molBytes)
Sets the molecule bytes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int F_MOL_MISSING
getFlags(),
Constant Field Valuesprotected long fileStartPosition
protected long fileEndPosition
protected MPropertyContainer properties
| Constructor Detail |
|---|
public MRecord()
public MRecord(long start,
long end,
int lineno,
java.lang.String s,
MPropertyContainer p,
int[] lmap)
start - the start position in input fileend - the end position in input filelineno - the line number at the starting points - the record stringp - the propertieslmap - original line numbers
public MRecord(long start,
long end,
int lineno,
java.lang.String s,
MPropertyContainer p,
int[] lmap,
int descflags)
start - the start position in input fileend - the end position in input filelineno - the line number at the starting points - the record stringp - the propertieslmap - original line numbersdescflags - extra record descriptor flags| Method Detail |
|---|
public java.lang.String getEncoding()
public java.lang.String getMolString()
public void setMolBytes(byte[] molBytes)
setMolString(java.lang.String)
is called to set the mol string.
molBytes - the molecule bytespublic byte[] getMolBytes()
getMolString().
public int getHeaderNewLineCount()
public java.lang.String getFormat()
public java.lang.String getInputFormat()
public java.lang.String getString()
IOException - If I/O error occuredMRecordReader.getHeaderAsString(),
MRecordReader.getFooterAsString(),
getMolString()public MPropertyContainer getPropertyContainer()
public int[] getLineNumberMap()
public long getStartPosition()
public long getEndPosition()
public int getStartLineCount()
public int getEndLineCount()
public int getFlags()
F_MOL_MISSING
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||