| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final EmbedConnection | |
| private byte[] | |
| private static final int | |
| private boolean | |
| private static final int | |
| private LOBFile | |
| private long |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | LOBStreamControl(EmbedConnection
Connection for this lob conn, byte[] initial value data)Creates a LOBStreamControl and initializes with a bytes array. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv synchronized void | copyData(InputStream
the stream to copy from inStream, long number of bytes to be copied, or length)Long.MAX_VALUE to
copy everything until EOF is reachedCopies bytes from stream to local storage. |
| pack-priv synchronized long | Returns: The number of characters copied.the stream to copy from utf8Stream, final long number of chars to be copied, or charLength)Long.MAX_VALUE
to copy everything until EOF is reachedCopies UTF-8 encoded chars from a stream to local storage. |
| private void | |
| protected void | finalize()
Overrides java. Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
| private static Object | findService(final String factoryInterface, final String serviceName)
Must be private so that user code can't call this entry point. |
| private static Object | findServiceModule(final Object serviceModule, final String factoryInterface)
Must be private so that user code can't call this entry point. |
| pack-priv void | |
| pack-priv InputStream | Returns: InputStreaminitial postion pos)returns input stream linked with this object. |
| pack-priv long | |
| pack-priv OutputStream | Returns: OutputStreaminitial postion pos)returns output stream linked with this object |
| pack-priv long | Returns: The current update sequence number.Returns the running sequence number to check if the lob is updated since last access. |
| private void | |
| private void | |
| private void | |
| pack-priv synchronized int | |
| pack-priv synchronized int | Returns: number new positionarray into the bytes will be copied buff, int offset from where the array has to be populated off, int number of bytes to read len, long initial position before reading pos)Reads bytes starting from 'position' into bytes array. |
| private int | |
| private void | releaseTempFile(LOBFile
the temporary file file)Close and release all resources held by a temporary file. |
| pack-priv synchronized long | Returns: Current position after write.byte array which will be written inplace of old block buf, long inclusive starting position of current block stPos, long exclusive end position of current block endPos)Replaces a block of bytes in the middle of the LOB with a another block of bytes, which may be of a different size. |
| pack-priv synchronized void | |
| private long | |
| pack-priv synchronized long | |
| pack-priv synchronized long | Returns: The position after the bytes have been written to the LOB.byte array b, int offset from where to read from the byte array off, int number of bytes to be written len, long starting position pos)Writes |
| bufferSize | back to summary |
|---|---|
| private final int bufferSize | |
| conn | back to summary |
|---|---|
| private final EmbedConnection conn | |
| dataBytes | back to summary |
|---|---|
| private byte[] dataBytes | |
| DEFAULT_BUF_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_BUF_SIZE | |
| isBytes | back to summary |
|---|---|
| private boolean isBytes | |
| MAX_BUF_SIZE | back to summary |
|---|---|
| private static final int MAX_BUF_SIZE | |
| tmpFile | back to summary |
|---|---|
| private LOBFile tmpFile | |
| updateCount | back to summary |
|---|---|
| private long updateCount | |
| LOBStreamControl | back to summary |
|---|---|
| pack-priv LOBStreamControl(EmbedConnection conn) Creates an empty LOBStreamControl.
| |
| LOBStreamControl | back to summary |
|---|---|
| pack-priv LOBStreamControl(EmbedConnection conn, byte[] data) throws IOException, StandardException Creates a LOBStreamControl and initializes with a bytes array.
| |
| copyData | back to summary |
|---|---|
| pack-priv synchronized void copyData(InputStream inStream, long length) throws IOException, StandardException Copies bytes from stream to local storage.
Note that specifying the length as
| |
| copyUtf8Data | back to summary |
|---|---|
| pack-priv synchronized long copyUtf8Data(final InputStream utf8Stream, final long charLength) throws IOException, StandardException Copies UTF-8 encoded chars from a stream to local storage.
Note that specifying the length as
| |
| deleteFile | back to summary |
|---|---|
| private void deleteFile(final StorageFile file) | |
| finalize | back to summary |
|---|---|
| protected void finalize() throws Throwable Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the
| |
| findService | back to summary |
|---|---|
| private static Object findService(final String factoryInterface, final String serviceName) Must be private so that user code can't call this entry point. | |
| findServiceModule | back to summary |
|---|---|
| private static Object findServiceModule(final Object serviceModule, final String factoryInterface) throws StandardException Must be private so that user code can't call this entry point. | |
| free | back to summary |
|---|---|
| pack-priv void free() throws IOException Invalidates all the variables and closes file handle if open.
| |
| getInputStream | back to summary |
|---|---|
| pack-priv InputStream getInputStream(long pos) returns input stream linked with this object.
| |
| getLength | back to summary |
|---|---|
| pack-priv long getLength() throws IOException Returns length of data.
| |
| getOutputStream | back to summary |
|---|---|
| pack-priv OutputStream getOutputStream(long pos) returns output stream linked with this object
| |
| getUpdateCount | back to summary |
|---|---|
| pack-priv long getUpdateCount() Returns the running sequence number to check if the lob is updated since last access.
| |
| init | back to summary |
|---|---|
| private void init(byte[] b, long len) throws IOException, StandardException | |
| isValidOffset | back to summary |
|---|---|
| private void isValidOffset(int off, int length) throws StandardException | |
| isValidPostion | back to summary |
|---|---|
| private void isValidPostion(long pos) throws IOException, StandardException | |
| read | back to summary |
|---|---|
| pack-priv synchronized int read(long pos) throws IOException, StandardException Reads one byte.
| |
| read | back to summary |
|---|---|
| pack-priv synchronized int read(byte[] buff, int off, int len, long pos) throws IOException, StandardException Reads bytes starting from 'position' into bytes array. starting from 'offset'
| |
| readBytes | back to summary |
|---|---|
| private int readBytes(byte[] b, int off, int len, long pos) | |
| releaseTempFile | back to summary |
|---|---|
| private void releaseTempFile(LOBFile file) throws IOException Close and release all resources held by a temporary file. The file will
also be deleted from the file system and removed from the list of
| |
| replaceBytes | back to summary |
|---|---|
| pack-priv synchronized long replaceBytes(byte[] buf, long stPos, long endPos) throws IOException, StandardException Replaces a block of bytes in the middle of the LOB with a another block of bytes, which may be of a different size. The new byte array may not be be of same length as the original, thus it may result in resizing the total lob.
| |
| truncate | back to summary |
|---|---|
| pack-priv synchronized void truncate(long size) throws IOException, StandardException Resets the size.
| |
| updateData | back to summary |
|---|---|
| private long updateData(byte[] bytes, int offset, int len, long pos) throws StandardException | |
| write | back to summary |
|---|---|
| pack-priv synchronized long write(int b, long pos) throws IOException, StandardException Writes one byte.
| |
| write | back to summary |
|---|---|
| pack-priv synchronized long write(byte[] b, int off, int len, long pos) throws IOException, StandardException Writes
| |