[CSV-131] Save positions of records to enable random access. 2nd commit for this new feature. Let the Lexer make the underlying reader's character position available through a new package private method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1625456 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9e4e3dc379
commit
c609fb39e6
|
@ -34,7 +34,7 @@ import java.io.Closeable;
|
|||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
*
|
||||
* Lexical analyzer.
|
||||
*
|
||||
* @version $Id$
|
||||
*/
|
||||
|
@ -301,6 +301,15 @@ final class Lexer implements Closeable {
|
|||
return reader.getCurrentLineNumber();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current character position
|
||||
*
|
||||
* @return the current character position
|
||||
*/
|
||||
long getCharacterPosition() {
|
||||
return reader.getPosition();
|
||||
}
|
||||
|
||||
// TODO escape handling needs more work
|
||||
/**
|
||||
* Handle an escape sequence.
|
||||
|
|
Loading…
Reference in New Issue