|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.io.input.ReversedLinesFileReader.FilePart
private class ReversedLinesFileReader.FilePart
| Field Summary | |
|---|---|
private int |
currentLastBytePos
|
private byte[] |
data
|
private byte[] |
leftOver
|
private long |
no
|
| Constructor Summary | |
|---|---|
private |
ReversedLinesFileReader.FilePart(long no,
int length,
byte[] leftOverOfLastFilePart)
ctor |
| Method Summary | |
|---|---|
private void |
createLeftOver()
Creates the buffer containing any left over bytes. |
private int |
getNewLineMatchByteCount(byte[] data,
int i)
Finds the new-line sequence and return its length. |
private java.lang.String |
readLine()
Reads a line. |
private ReversedLinesFileReader.FilePart |
rollOver()
Handles block rollover |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final long no
private final byte[] data
private byte[] leftOver
private int currentLastBytePos
| Constructor Detail |
|---|
private ReversedLinesFileReader.FilePart(long no,
int length,
byte[] leftOverOfLastFilePart)
throws java.io.IOException
no - the part numberlength - its lengthleftOverOfLastFilePart - remainder
java.io.IOException - if there is a problem reading the file| Method Detail |
|---|
private ReversedLinesFileReader.FilePart rollOver()
throws java.io.IOException
java.io.IOException - if there was a problem reading the file
private java.lang.String readLine()
throws java.io.IOException
java.io.IOException - if there is an error reading from the fileprivate void createLeftOver()
private int getNewLineMatchByteCount(byte[] data,
int i)
data - buffer to scani - start offset in buffer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||