BeanIO 2.0.4

org.beanio.internal.util
Class RecordFilterReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.FilterReader
          extended by 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

Field Summary
 
Fields inherited from class java.io.FilterReader
in
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
RecordFilterReader(Reader in)
          Constructs a new RecordFilterReader.
 
Method Summary
 int getLineNumber()
           
 long getPosition()
           
 void mark(int readAheadLimit)
           
 int read()
           
 String recordCompleted()
           
 void recordStarted()
           
 void recordStarted(String text)
           
 void reset()
           
 
Methods inherited from class java.io.FilterReader
close, markSupported, read, ready, skip
 
Methods inherited from class java.io.Reader
read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordFilterReader

public RecordFilterReader(Reader in)
Constructs a new RecordFilterReader.

Parameters:
in - the Reader to read from
Method Detail

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

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim