|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kom.tools.web.ReadFile
Field Summary | |
protected byte[] |
buf
|
protected boolean |
eos
|
(package private) java.io.InputStream |
in
|
protected int |
length
|
boolean |
nl
|
protected static int |
NL
|
protected int |
pos
|
static int |
SIZE
|
long |
totalNL
|
long |
totalPass
|
long |
totalRead
|
Constructor Summary | |
ReadFile(java.io.InputStream in)
Constructor. |
Method Summary | |
protected void |
actualize()
Resets pos and length if required |
void |
close()
Closes the file |
protected int |
index(int c)
Looks up a byte in the buffer |
java.io.ByteArrayOutputStream |
readLine()
Reads a line from a file The lines should be separated with LF (10) |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final int SIZE
protected byte[] buf
protected int length
protected boolean eos
protected int pos
protected static final int NL
java.io.InputStream in
public boolean nl
public long totalRead
public long totalPass
public long totalNL
Constructor Detail |
public ReadFile(java.io.InputStream in)
in
- InputStreamMethod Detail |
protected int index(int c)
c
- byteprotected void actualize()
public java.io.ByteArrayOutputStream readLine()
public void close()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |