private class BlobBuffer.BlobOutputStream
extends java.io.OutputStream
OutputStream
for BLOB data.Modifier and Type | Field and Description |
---|---|
private boolean |
open |
private int |
writePtr |
Constructor and Description |
---|
BlobBuffer.BlobOutputStream(long pos)
Costructs an OutputStream object over the BLOB buffer.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the output stream.
|
protected void |
finalize()
Ensures underlying BLOB file can be closed even if user does not
close this stream.
|
void |
write(byte[] bytes,
int offset,
int len)
Write bytes to the BLOB buffer.
|
void |
write(int b)
Write a byte to the BLOB buffer.
|
BlobBuffer.BlobOutputStream(long pos) throws java.io.IOException
pos
- the starting position (from 0)java.io.IOException
- if an I/O error occursprotected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
b
- the byte value to writejava.io.IOException
- if an I/O error occurspublic void write(byte[] bytes, int offset, int len) throws java.io.IOException
write
in class java.io.OutputStream
bytes
- the byte array value to writeoffset
- the start position in the byte arraylen
- the number of bytes to writejava.io.IOException
- if an I/O error occurspublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
- if an I/O error occursGenerated on June 8 2013