Package java.io
Class LineNumberReader

Public Method mark

void mark(int readlimit)

Overrides:

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

This method marks the present position in the stream. Subsequent calls to the reset method will attempt to reposition the stream to this point, and will reset the line number appropriately.

Example

   File file = new File("testFile");
   Reader read = new FileReader(file);
   LineNumberReader lnr = new LineNumberReader(read);
   ...
   lnr.mark(10);

The example above marks the current position in the stream.