org.apache.derby.impl.io.vfmem
Class BlockedByteArrayOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.derby.impl.io.vfmem.BlockedByteArrayOutputStream
-
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
public class BlockedByteArrayOutputStream extends java.io.OutputStreamOutput stream writing bytes into an underlying blocked byte array.
-
-
Constructor Summary
Constructors Constructor and Description BlockedByteArrayOutputStream(BlockedByteArray src, long pos)Creates a new stream writing data into the specified blocked byte array.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclose()Closes the stream.voidwrite(byte[] buf, int offset, int len)Writes the specified bytes into the underlying blocked byte array.voidwrite(int b)Writes the single byte into the underlying blocked byte array.
-
-
-
Constructor Detail
-
BlockedByteArrayOutputStream
public BlockedByteArrayOutputStream(BlockedByteArray src, long pos)
Creates a new stream writing data into the specified blocked byte array.- Parameters:
src- the underlying blocked byte arraypos- the initial position of stream
-
-
Method Detail
-
write
public void write(int b)
Writes the single byte into the underlying blocked byte array.- Specified by:
writein classjava.io.OutputStream- Parameters:
b- the byte to write
-
write
public void write(byte[] buf, int offset, int len)Writes the specified bytes into the underlying blocked byte array.- Overrides:
writein classjava.io.OutputStream- Parameters:
buf- source byte arrayoffset- index of the first byte to writelen- the number of bytes to write
-
close
public void close()
Closes the stream.- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfacejava.lang.AutoCloseable- Overrides:
closein classjava.io.OutputStream
-
-
DataMelt 3.0 © DataMelt by jWork.ORG