|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
org.apache.derby.impl.io.vfmem.BlockedByteArrayOutputStream
public class BlockedByteArrayOutputStream
Output stream writing bytes into an underlying blocked byte array.
| Field Summary | |
|---|---|
private long |
pos
The current position of the stream. |
private BlockedByteArray |
src
The underlying destination. |
| Constructor Summary | |
|---|---|
BlockedByteArrayOutputStream(BlockedByteArray src,
long pos)
Creates a new stream writing data into the specified blocked byte array. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the stream. |
(package private) long |
getPosition()
Returns the current position. |
(package private) void |
setPosition(long newPos)
Sets the position. |
void |
write(byte[] buf,
int offset,
int len)
Writes the specified bytes into the underlying blocked byte array. |
void |
write(int b)
Writes the single byte into the underlying blocked byte array. |
| Methods inherited from class java.io.OutputStream |
|---|
flush, write |
| 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 BlockedByteArrayOutputStream(BlockedByteArray src,
long pos)
src - the underlying blocked byte arraypos - the initial position of stream| Method Detail |
|---|
void setPosition(long newPos)
newPos - the new byte positionlong getPosition()
public void write(int b)
write in class java.io.OutputStreamb - the byte to write
public void write(byte[] buf,
int offset,
int len)
write in class java.io.OutputStreambuf - source byte arrayoffset - index of the first byte to writelen - the number of bytes to writepublic void close()
close in interface java.io.Closeableclose in class java.io.OutputStream
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||