|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.apache.derby.impl.io.vfmem.BlockedByteArrayInputStream
class BlockedByteArrayInputStream
An input stream reading from a blocked byte array.
Field Summary | |
---|---|
private long |
pos
The current position of the stream. |
private BlockedByteArray |
src
The underlying source. |
Constructor Summary | |
---|---|
BlockedByteArrayInputStream(BlockedByteArray src,
long pos)
Creates a new input stream reading from a blocked byte array. |
Method Summary | |
---|---|
void |
close()
Closes the stream. |
(package private) long |
getPosition()
Returns the current position. |
int |
read()
Reads a single byte. |
int |
read(byte[] buf,
int offset,
int len)
Reads up to len bytes. |
(package private) void |
setPosition(long newPos)
Sets the position. |
Methods inherited from class java.io.InputStream |
---|
available, 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 |
---|
private BlockedByteArray src
null
when closed.
private long pos
Constructor Detail |
---|
public BlockedByteArrayInputStream(BlockedByteArray src, long pos)
src
- the source blocked byte arraypos
- the initial position to start reading fromMethod Detail |
---|
void setPosition(long newPos)
newPos
- the new byte positionlong getPosition()
public int read()
read
in class java.io.InputStream
public int read(byte[] buf, int offset, int len)
len
bytes.
read
in class java.io.InputStream
buf
- destination bufferoffset
- offset into the destination bufferlen
- number of bytes to read
public void close()
close
in interface java.io.Closeable
close
in class java.io.InputStream
|
Built on Thu 2011-03-10 11:54:14+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |