public class LineReaderAdapter extends java.lang.Object implements RecordProviderIfc
| Modifier and Type | Field and Description |
|---|---|
protected int |
bodyRecSize |
protected int |
headerRecSize |
protected PosLineReader |
lineReader |
protected long |
position |
protected java.util.LinkedList |
storedLines |
protected java.util.LinkedList |
storedPositions |
protected int |
trailerRecSize |
| Constructor and Description |
|---|
LineReaderAdapter(AsciiFileDef asciiFileDef) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getFilePosition() |
java.lang.String[] |
getHeader() |
protected java.lang.String[] |
getLines(int numLines) |
java.lang.String[] |
getRecord() |
java.lang.String[] |
getTrailer() |
void |
open(java.io.File file) |
protected java.lang.String |
readLine() |
void |
setFilePosition(long pos) |
protected PosLineReader lineReader
protected int headerRecSize
protected int bodyRecSize
protected int trailerRecSize
protected long position
protected java.util.LinkedList storedLines
protected java.util.LinkedList storedPositions
public LineReaderAdapter(AsciiFileDef asciiFileDef)
public java.lang.String[] getHeader()
throws java.io.IOException
getHeader in interface RecordProviderIfcjava.io.IOExceptionpublic java.lang.String[] getRecord()
throws java.io.IOException
getRecord in interface RecordProviderIfcjava.io.IOExceptionpublic java.lang.String[] getTrailer()
throws java.io.IOException
getTrailer in interface RecordProviderIfcjava.io.IOExceptionprotected java.lang.String[] getLines(int numLines)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String readLine()
throws java.io.IOException
java.io.IOExceptionpublic void open(java.io.File file)
throws java.io.IOException
open in interface RecordProviderIfcjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface RecordProviderIfcjava.io.IOExceptionpublic long getFilePosition()
throws java.io.IOException
getFilePosition in interface RecordProviderIfcjava.io.IOExceptionpublic void setFilePosition(long pos)
throws java.io.IOException
setFilePosition in interface RecordProviderIfcjava.io.IOException