public class MRecord extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
F_MOL_MISSING
Molecule (or reaction) is missing from the record.
|
protected long |
fileEndPosition |
protected long |
fileStartPosition |
protected MPropertyContainer |
properties |
| Constructor and Description |
|---|
MRecord()
Default constructor.
|
MRecord(long start,
long end,
int lineno,
String s,
MPropertyContainer p,
int[] lmap)
Creates a record.
|
MRecord(long start,
long end,
int lineno,
String s,
MPropertyContainer p,
int[] lmap,
int descflags)
Creates a record.
|
MRecord(long start,
long end,
int lineno,
String s,
MPropertyContainer p,
int[] lmap,
int descflags,
String moleculeName)
Creates a record.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getFormat()
Gets the full format string of the record.
|
int |
getHeaderNewLineCount()
Gets the number of new lines in the molecule header part.
|
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.
|
String |
getMoleculeName()
Returns the name of the molecule in the record.
|
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.
|
String |
getString()
Gets the record text as string.
|
void |
setMolBytes(byte[] molBytes)
Sets the molecule bytes.
|
public static final int F_MOL_MISSING
getFlags(),
Constant Field Valuesprotected long fileStartPosition
protected long fileEndPosition
protected MPropertyContainer properties
public MRecord()
public MRecord(long start,
long end,
int lineno,
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 numberspublic MRecord(long start,
long end,
int lineno,
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 flagspublic MRecord(long start,
long end,
int lineno,
String s,
MPropertyContainer p,
int[] lmap,
int descflags,
String moleculeName)
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 flagsmoleculeName - name of the moleculepublic String getEncoding()
public 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 String getFormat()
public String getInputFormat()
public String getString()
MRecordReader.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_MISSINGpublic String getMoleculeName()