org.beanio.internal.util
Class RecordFilterReader
java.lang.Object
java.io.Reader
java.io.FilterReader
org.beanio.internal.util.RecordFilterReader
- All Implemented Interfaces:
- Closeable, Readable
public class RecordFilterReader
- extends FilterReader
A Reader
implementation for tracking the current line number, current
position and record text.
- Since:
- 2.0
- Author:
- Kevin Seim
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecordFilterReader
public RecordFilterReader(Reader in)
- Constructs a new RecordFilterReader.
- Parameters:
in
- the Reader
to read from
getLineNumber
public int getLineNumber()
getPosition
public long getPosition()
recordStarted
public void recordStarted()
recordStarted
public void recordStarted(String text)
recordCompleted
public String recordCompleted()
throws IllegalStateException
- Throws:
IllegalStateException
read
public int read()
throws IOException
- Overrides:
read
in class FilterReader
- Throws:
IOException
mark
public void mark(int readAheadLimit)
throws IOException
- Overrides:
mark
in class FilterReader
- Throws:
IOException
reset
public void reset()
throws IOException
- Overrides:
reset
in class FilterReader
- Throws:
IOException
Copyright © 2010-2013 Kevin Seim