|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.InputStream | +--de.mvcsys.renscribe.EFileInputStream
InputStream für EFile
Field Summary | |
protected byte[] |
buffer
Puffer f&uer ungelesene Daten |
protected EFile |
file
Das EFile-Objekt |
protected int |
offset
Zeiger auf das nächste Zeichen in buffer |
protected int |
size
Anzahl der Zeichen, die noch nicht gelesen sind |
Constructor Summary | |
EFileInputStream(EFile file)
Konstruktor |
Method Summary | |
int |
available()
Ermittle die Anzahl der mindestens noch lesbaren Zeichen. |
void |
close()
Schliesse den Stream und die Datei |
protected void |
fillBuffer()
Fülle den internen Puffer |
static void |
main(String[] args)
Test |
int |
read()
Lese ein Byte |
int |
read(byte[] b,
int off,
int len)
Lese einen Array von Zeichen |
Methods inherited from class java.io.InputStream |
mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected byte[] buffer
protected EFile file
protected int offset
buffer
protected int size
Constructor Detail |
public EFileInputStream(EFile file) throws IOException
file
- Das geöfnete EFileMethod Detail |
public int available() throws IOException
Ermittle die Anzahl der mindestens noch lesbaren Zeichen.
Bei Prozessen oder Terminals kann man sich darauf nicht verlassen!available
in class InputStream
public void close() throws IOException
close
in class InputStream
protected void fillBuffer() throws IOException
public static void main(String[] args) throws Exception
public int read() throws IOException
read
in class InputStream
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
b
- Pufferoff
- Offset in b
len
- Anzahl der zu lesenden Zeichen
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |