| Modifier and Type | Field and Description |
|---|---|
| private long | absolutePosition
The absolute position. |
| private @Nullable byte[] | buffer
Buffer used to improve performance. |
| private int | bufferPosition
Position within buffer. |
| pack-priv static final int | |
| pack-priv static final int | |
| private int | lastBufferSize
The amount of bytes to read on the next read. |
| private final long | limit
The limit. |
| private @Nullable LargeObject | lo
The parent LargeObject. |
| private final ResourceLock | |
| private long | markPosition
The mark position. |
| private final int | maxBufferSize
The buffer size. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | BlobInputStream(LargeObject
LargeObject to read from lo, int buffer size bsize, long max number of bytes to read limit)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Closes this input stream and releases any system resources associated with the stream. |
| private LargeObject | |
| private int | Returns: next buffer size ormaxBufferSize if the buffer should not be increasedestimated read request len)Computes the next buffer size to use for reading data from the large object. |
| public void | mark(int
the maximum limit of bytes that can be read before the mark position becomes
invalid. readlimit)Overrides java. Marks the current position in this input stream. |
| public boolean | Returns: true if this true type supports the mark and reset method;
false otherwise.Overrides java. Tests if this input stream supports the |
| public int | |
| public int | read(byte[]
the buffer into which the data is read. dest, 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 void | reset()
Overrides java. Repositions this stream to the position at the time the |
| absolutePosition | back to summary |
|---|---|
| private long absolutePosition The absolute position. | |
| buffer | back to summary |
|---|---|
| private @Nullable byte[] buffer Buffer used to improve performance. | |
| bufferPosition | back to summary |
|---|---|
| private int bufferPosition Position within buffer. | |
| DEFAULT_MAX_BUFFER_SIZE | back to summary |
|---|---|
| pack-priv static final int DEFAULT_MAX_BUFFER_SIZE | |
| INITIAL_BUFFER_SIZE | back to summary |
|---|---|
| pack-priv static final int INITIAL_BUFFER_SIZE | |
| lastBufferSize | back to summary |
|---|---|
| private int lastBufferSize The amount of bytes to read on the next read.
Currently, we nullify | |
| limit | back to summary |
|---|---|
| private final long limit The limit. | |
| lo | back to summary |
|---|---|
| private @Nullable LargeObject lo The parent LargeObject. | |
| lock | back to summary |
|---|---|
| private final ResourceLock lock | |
| markPosition | back to summary |
|---|---|
| private long markPosition The mark position. | |
| maxBufferSize | back to summary |
|---|---|
| private final int maxBufferSize The buffer size. | |
| BlobInputStream | back to summary |
|---|---|
public BlobInputStream(LargeObject lo)
| |
| BlobInputStream | back to summary |
|---|---|
public BlobInputStream(LargeObject lo, int bsize)
| |
| BlobInputStream | back to summary |
|---|---|
public BlobInputStream(LargeObject lo, int bsize, long limit)
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Closes this input stream and releases any system resources associated with the stream. The
| |
| getLo | back to summary |
|---|---|
| private LargeObject getLo() throws IOException | |
| getNextBufferSize | back to summary |
|---|---|
| private int getNextBufferSize(int len) Computes the next buffer size to use for reading data from the large object. The idea is to avoid allocating too much memory, especially if the user will use just a few bytes of the data.
| |
| mark | back to summary |
|---|---|
| public void mark(int readlimit) Overrides java. Marks the current position in this input stream. A subsequent call to the The The general contract of Marking a closed stream should not have any effect on the stream.
| |
| markSupported | back to summary |
|---|---|
| public boolean markSupported() Overrides java. Tests if this input stream supports the
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. The minimum required to implement input stream.
| |
| read | back to summary |
|---|---|
| public int read(byte[] dest, int off, int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |
| reset | back to summary |
|---|---|
| public void reset() throws IOException Overrides java. Repositions this stream to the position at the time the Note If mark is not called we move to the beginning.
| |