| Modifier and Type | Field and Description |
|---|---|
| private @Nullable byte[] | buf
Buffer. |
| private int | bufferPosition
Position within the buffer. |
| pack-priv static final int | |
| private @Nullable LargeObject | lo
The parent LargeObject. |
| private final ResourceLock | |
| private final @Positive int | maxBufferSize
Size of the buffer (default 1K). |
| Access | Constructor and Description |
|---|---|
| public | |
| public | BlobOutputStream(LargeObject
LargeObject lo, int The size of the buffer for single-byte writes bufferSize)Create an OutputStream to a large object. |
| Modifier and Type | Method and Description |
|---|---|
| private LargeObject | |
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| public void | flush()
Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out. |
| private byte[] | Returns: new bufferthe number of extra bytes that should fit in the buffer extraBytes)Grows an internal buffer to ensure the extra bytes fit in the buffer. |
| public void | write(int
the b)byte.Implements abstract java. Writes the specified byte to this output stream. |
| public void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. Writes |
| buf | back to summary |
|---|---|
| private @Nullable byte[] buf Buffer. | |
| bufferPosition | back to summary |
|---|---|
| private int bufferPosition Position within the buffer. | |
| DEFAULT_MAX_BUFFER_SIZE | back to summary |
|---|---|
| pack-priv static final int DEFAULT_MAX_BUFFER_SIZE | |
| lo | back to summary |
|---|---|
| private @Nullable LargeObject lo The parent LargeObject. | |
| lock | back to summary |
|---|---|
| private final ResourceLock lock | |
| maxBufferSize | back to summary |
|---|---|
| private final @Positive int maxBufferSize Size of the buffer (default 1K). | |
| BlobOutputStream | back to summary |
|---|---|
| public BlobOutputStream(LargeObject lo) Create an OutputStream to a large object.
| |
| BlobOutputStream | back to summary |
|---|---|
| public BlobOutputStream(LargeObject lo, int bufferSize) Create an OutputStream to a large object.
| |
| checkClosed | back to summary |
|---|---|
| private LargeObject checkClosed() throws IOException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out. The general
contract of
| |
| growBuffer | back to summary |
|---|---|
| private byte[] growBuffer(int extraBytes) Grows an internal buffer to ensure the extra bytes fit in the buffer.
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |