| Modifier and Type | Field and Description |
|---|---|
| private final StorageRandomAccessFile | randomAccessFile
An object giving random access to |
| private final StorageFile | storageFile
The temporary file where the contents of the LOB should be stored. |
| Access | Constructor and Description |
|---|---|
| pack-priv | LOBFile(StorageFile
StorageFile object for which the file will be created lobFile)Constructs LOBFile. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv long | |
| pack-priv StorageFile | Returns: aStorageFile instanceGet the |
| pack-priv long | |
| pack-priv int | Returns: number of bytes readbuffer buff, int starting position of buffer off, int number of bytes len)Reads len number of bytes from the file starting from off position in the buffer. |
| pack-priv int | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | write(byte[]
byte array containing bytes to write into the file b, int starting position of segment off, int number of bytes to be written len)Writes a segment of bytes into the file. |
| pack-priv void |
| randomAccessFile | back to summary |
|---|---|
| private final StorageRandomAccessFile randomAccessFile An object giving random access to | |
| storageFile | back to summary |
|---|---|
| private final StorageFile storageFile The temporary file where the contents of the LOB should be stored. | |
| LOBFile | back to summary |
|---|---|
| pack-priv LOBFile(StorageFile lobFile) throws FileNotFoundException Constructs LOBFile.
| |
| close | back to summary |
|---|---|
| pack-priv void close() throws IOException Closes the file.
| |
| getFilePointer | back to summary |
|---|---|
| pack-priv long getFilePointer() throws IOException Returns the current position of the file pointer.
| |
| getStorageFile | back to summary |
|---|---|
| pack-priv StorageFile getStorageFile() Get the
| |
| length | back to summary |
|---|---|
| pack-priv long length() throws IOException Returns length of the file.
| |
| read | back to summary |
|---|---|
| pack-priv int read(byte[] buff, int off, int len) throws IOException, StandardException Reads len number of bytes from the file starting from off position in the buffer.
| |
| readByte | back to summary |
|---|---|
| pack-priv int readByte() throws IOException, StandardException Reads one byte from file.
| |
| seek | back to summary |
|---|---|
| pack-priv void seek(long pos) throws IOException Sets the file pointer to a given position.
| |
| setLength | back to summary |
|---|---|
| pack-priv void setLength(long size) throws IOException, StandardException Sets the file length to a given size.
| |
| write | back to summary |
|---|---|
| pack-priv void write(int b) throws IOException, StandardException Writes one bytes into the file.
| |
| write | back to summary |
|---|---|
| pack-priv void write(byte[] b, int off, int len) throws IOException, StandardException Writes a segment of bytes into the file.
| |
| write | back to summary |
|---|---|
| pack-priv void write(byte[] buf) throws IOException, StandardException Writes a buffer completely into the file.
| |