|
Berkeley DB version 4.2.52 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--com.sleepycat.bdb.util.FastInputStream
A replacement for ByteArrayInputStream that does not synchronize every byte read.
| Constructor Summary | |
FastInputStream(byte[] buffer)
Creates an input stream. |
|
FastInputStream(byte[] buffer,
int offset,
int length)
Creates an input stream. |
|
| Method Summary | |
int |
available()
|
byte[] |
getBufferBytes()
Returns the underlying data being read. |
int |
getBufferLength()
Returns the end of the buffer being read. |
int |
getBufferOffset()
Returns the offset at which data is being read from the buffer. |
void |
mark(int pos)
|
boolean |
markSupported()
|
int |
read()
|
int |
read(byte[] toBuf)
|
int |
read(byte[] toBuf,
int offset,
int length)
|
void |
reset()
|
long |
skip(long count)
|
| Methods inherited from class java.io.InputStream |
close |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FastInputStream(byte[] buffer)
buffer - the data to read.
public FastInputStream(byte[] buffer,
int offset,
int length)
buffer - the data to read.offset - the byte offset at which to begin reading.length - the number of bytes to read.| Method Detail |
public int available()
available in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic void mark(int pos)
mark in class InputStreampublic void reset()
reset in class InputStreampublic long skip(long count)
skip in class InputStream
public int read()
throws IOException
read in class InputStreamIOException
public int read(byte[] toBuf)
throws IOException
read in class InputStreamIOException
public int read(byte[] toBuf,
int offset,
int length)
throws IOException
read in class InputStreamIOExceptionpublic byte[] getBufferBytes()
public int getBufferOffset()
public int getBufferLength()
|
Berkeley DB version 4.2.52 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||