|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.io.BufferInput
public class BufferInput
This class serves as a buffered wrapper for input streams.
| Constructor Summary | |
|---|---|
BufferInput(byte[] buf)
Empty constructor. |
|
BufferInput(java.io.File file)
Initializes the file reader. |
|
BufferInput(java.io.File file,
byte[] buf)
Initializes the file reader. |
|
BufferInput(java.lang.String file)
Initializes the file reader. |
|
BufferInput(java.lang.String file,
byte[] buf)
Initializes the file reader. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the input stream. |
long |
length()
Length of input. |
int |
read()
Reads a single byte and returns it as integer. |
byte |
readByte()
Returns the next byte. |
int |
size()
Number of read bytes. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferInput(byte[] buf)
buf - buffer
public BufferInput(java.io.File file)
throws java.io.IOException
file - the file to be read
java.io.IOException - IO Exception
public BufferInput(java.io.File file,
byte[] buf)
throws java.io.IOException
file - the file to be readbuf - input buffer
java.io.IOException - IO Exception
public BufferInput(java.lang.String file)
throws java.io.IOException
file - the file to be read
java.io.IOException - IO Exception
public BufferInput(java.lang.String file,
byte[] buf)
throws java.io.IOException
file - the file to be readbuf - input buffer
java.io.IOException - IO Exception| Method Detail |
|---|
public final void close()
throws java.io.IOException
java.io.IOException - IO Exceptionpublic final long length()
public final int read()
public byte readByte()
public final int size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||