|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Reader
java.io.FilterReader
org.paneris.util.CRLFFtellReader
public class CRLFFtellReader
| Field Summary |
|---|
| Fields inherited from class java.io.FilterReader |
|---|
in |
| Fields inherited from class java.io.Reader |
|---|
lock |
| Constructor Summary | |
|---|---|
CRLFFtellReader(java.io.BufferedReader in)
Create a new CRLFFtellReader. |
|
CRLFFtellReader(java.io.File f)
Create a new CRLFFtellReader. |
|
| Method Summary | |
|---|---|
long |
getFtell()
Get the current position. |
void |
mark(int readAheadLimit)
Mark the present position in the stream. |
int |
read()
Read a single character. |
int |
read(char[] cbuf,
int off,
int len)
Read characters into a portion of an array. |
java.lang.String |
readLine()
Read a line from the stream. |
void |
reset()
Reset the stream to the most recent mark. |
long |
skip(long n)
Skip characters. |
| Methods inherited from class java.io.FilterReader |
|---|
close, markSupported, ready |
| 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 |
|---|
public CRLFFtellReader(java.io.BufferedReader in)
public CRLFFtellReader(java.io.File f)
throws java.io.FileNotFoundException
java.io.FileNotFoundException| Method Detail |
|---|
public long getFtell()
public int read()
throws java.io.IOException
read in class java.io.FilterReaderjava.io.IOException - If an I/O error occurs
public int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterReadercbuf - Destination bufferoff - Offset at which to start storing characterslen - Maximum number of characters to read
java.io.IOException - If an I/O error occurs
public long skip(long n)
throws java.io.IOException
skip in class java.io.FilterReadern - The number of characters to skip
java.io.IOException - If an I/O error occurs
public void mark(int readAheadLimit)
throws java.io.IOException
mark in class java.io.FilterReaderreadAheadLimit - Limit on the number of characters that may be
read while still preserving the mark. After
reading this many characters, attempting to
reset the stream may fail.
java.io.IOException - If an I/O error occurs
public void reset()
throws java.io.IOException
reset in class java.io.FilterReaderjava.io.IOException - If the stream has not been marked,
or if the mark has been invalidated
public java.lang.String readLine()
throws java.io.IOException
java.io.IOException - If an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||