public class BlobLocatorOutputStream extends java.io.OutputStream
OutputStreamthat will use an locator to write bytes to the Blob value on the server.
BlobLocatorOutputStream has no effect. The
methods in this class can be called after the stream has been
closed without generating an
OutputStream implementation is pretty basic. No
buffering of data is done. Hence, for efficieny #write(byte)
should be used instead of #write(int).
|Constructor and Description|
|Modifier and Type||Method and Description|
public BlobLocatorOutputStream(Connection connection, Blob blob, long pos) throws SqlException
OutputStreamfor writing to the
Blobvalue represented by the given locator based
connection- connection to be used to write to the
Blobvalue on the server
Blobobject that contains locator for the
Blobvalue on the server.
pos- the position in the
BLOBvalue at which to start writing; the first position is 1
public void write(int b) throws java.io.IOException
This method writes one byte at a time to the server. For more efficient writing, use #write(byte).
public void write(byte b) throws java.io.IOException
public void write(byte b, int off, int len) throws java.io.IOException
OutputStream.write(byte, int, int)