class BlobW extends OutputStream
| Modifier and Type | Field and Description |
|---|---|
private Blob |
blob
Blob instance
|
private int |
pos
Read position, file pointer.
|
| Constructor and Description |
|---|
BlobW(Blob blob)
Contruct OutputStream from blob instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this blob OutputStream.
|
void |
flush()
Flush blob; dummy to satisfy OutputStream class.
|
void |
write(byte[] b)
Write blob data.
|
void |
write(byte[] b,
int off,
int len)
Write blob data.
|
void |
write(int v)
Write blob data.
|
private Blob blob
private int pos
BlobW(Blob blob)
blob - blob to make output stream frompublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOException - on I/O errorpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOException - on I/O errorpublic void write(byte[] b)
throws IOException
write in class OutputStreamb - byte array to be written at current position.IOException - on I/O errorpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamb - byte array to be written.off - offset within byte arraylen - length of data to be writtenIOException - on I/O errorpublic void write(int v)
throws IOException
write in class OutputStreamv - byte to be written at current position.IOException - on I/O errorContact: Christian Werner