| Modifier and Type | Field and Description |
|---|---|
| private final EmbedBlob | |
| private boolean | materialized
Flag to check if it is using stream from LOBStreamControl or from DVD. |
| private final long | maxPos
Position in Blob where to stop reading unless EOF is reached first. |
| private long | |
| private InputStream |
| Access | Constructor and Description |
|---|---|
| pack-priv | UpdatableBlobStream(EmbedBlob
EmbedBlob this stream is associated with. blob, InputStream InputStream this class is going to use internally. is)Constructs UpdatableBlobStream using the the InputStream receives as the parameter. |
| pack-priv | UpdatableBlobStream(EmbedBlob
EmbedBlob this stream is associated with. blob, InputStream InputStream this class is going to use internally. is, long initial position pos, long The length to which the underlying len)InputStream
has to be restricted.Construct an |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the next byte of data, or-1 if the end of the
stream is reached.Implements abstract java. Reads the next byte of data from the input stream. |
| public int | Returns: the total number of bytes read into the buffer, or-1 if there is no more data because the end of
the stream has been reached.the buffer into which the data is read. b, int the start offset in array off, int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. Reads up to |
| public int | Returns: the total number of bytes read into the buffer, or-1 is there is no more data because the end of
the stream has been reached.the buffer into which the data is read. b)Overrides java. Reads some number of bytes from the input stream and stores them into
the buffer array |
| public long | Returns: the actual number of bytes skipped.the number of bytes to be skipped. n)Overrides java. Skips over and discards |
| private void | updateIfRequired()
Checks if this object is using materialized blob if not it checks if the blob was materialized since this stream was last access. |
| blob | back to summary |
|---|---|
| private final EmbedBlob blob | |
| materialized | back to summary |
|---|---|
| private boolean materialized Flag to check if it is using stream from LOBStreamControl or from DVD.
| |
| maxPos | back to summary |
|---|---|
| private final long maxPos Position in Blob where to stop reading unless EOF is reached first. | |
| pos | back to summary |
|---|---|
| private long pos | |
| stream | back to summary |
|---|---|
| private InputStream stream | |
| UpdatableBlobStream | back to summary |
|---|---|
| pack-priv UpdatableBlobStream(EmbedBlob blob, InputStream is) throws IOException Constructs UpdatableBlobStream using the the InputStream receives as the
parameter. The initial position is set to the
| |
| UpdatableBlobStream | back to summary |
|---|---|
| pack-priv UpdatableBlobStream(EmbedBlob blob, InputStream is, long pos, long len) throws IOException Construct an
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Reads the next byte of data from the input stream. The value byte is
returned as an A subclass must provide an implementation of this method. Note that this stream will reflect changes made to the underlying Blob at positions equal to or larger then the current position.
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int off, int len) throws IOException Overrides java. Reads up to Note that this stream will reflect changes made to the underlying Blob at positions equal to or larger then the current position .
| |
| read | back to summary |
|---|---|
| public int read(byte[] b) throws IOException Overrides java. Reads some number of bytes from the input stream and stores them into
the buffer array Note that this stream will reflect changes made to the underlying Blob at positions equal to or larger then the current position .
| |
| skip | back to summary |
|---|---|
| public long skip(long n) throws IOException Overrides java. Skips over and discards Note that this stream will reflect changes made to the underlying Blob at positions equal to or larger then the current position .
| |
| updateIfRequired | back to summary |
|---|---|
| private void updateIfRequired() throws IOException Checks if this object is using materialized blob if not it checks if the blob was materialized since this stream was last access. If the blob was materialized (due to one of the set methods) it gets the stream again and sets the position to current read position. | |