public abstract class UpdateSensitiveLOBLocatorInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
protected Connection |
con |
protected long |
currentPos |
protected long |
length |
| Modifier | Constructor and Description |
|---|---|
protected |
UpdateSensitiveLOBLocatorInputStream(Connection con,
Lob lob,
InputStream is)
Initializes the InputStream, updateCount, currentPos
and the connection to the appropriate values.
|
protected |
UpdateSensitiveLOBLocatorInputStream(Connection con,
Lob lob,
InputStream is,
long pos,
long len)
Initializes the InputStream, updateCount, currentPos,
length and the connection to the appropriate values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
protected abstract InputStream |
reCreateStream()
Abstract method that will be implemented by
the underlying streams specific to Clob and
Blob.
|
available, mark, markSupported, read, reset, skipprotected Connection con
protected long currentPos
protected long length
protected UpdateSensitiveLOBLocatorInputStream(Connection con, Lob lob, InputStream is) throws SqlException
con - connection to be used to read the
Lob value from the serverlob - Lob object which could be a
Blob or a Clob.is - an InputStream that contains the
appropriate locator stream instance.SqlExceptionprotected UpdateSensitiveLOBLocatorInputStream(Connection con, Lob lob, InputStream is, long pos, long len) throws SqlException
con - connection to be used to read the
Lob value from the serverlob - Lob object which could be a
Blob or a Clob.is - an InputStream that contains the
appropriate locator stream instance.pos - the position from which the first read begins.len - the length in bytes of the partial value to be
retrieved.SqlExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionInputStream.read()public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionInputStream.read(byte[], int, int)public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionprotected abstract InputStream reCreateStream() throws SqlException
SqlExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.