chemaxon.marvin.io
Class MRecordReader.Position

java.lang.Object
  extended by chemaxon.marvin.io.MRecordReader.Position
Enclosing interface:
MRecordReader

public static class MRecordReader.Position
extends java.lang.Object

Position in the input file.


Constructor Summary
MRecordReader.Position(int r, int l)
          Creates a locator.
 
Method Summary
 int getLineNumber()
          Gets the line number.
 int getRecordNumber()
          Gets the record number.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MRecordReader.Position

public MRecordReader.Position(int r,
                              int l)
Creates a locator.

Parameters:
r - the record number (greater than zero)
l - the line number (greater than zero)
Method Detail

getRecordNumber

public int getRecordNumber()
Gets the record number.

Returns:
the record number (greater than zero)

getLineNumber

public int getLineNumber()
Gets the line number.

Returns:
the line number (greater than zero)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object