MultipartEntry content in the binary mode.
| Modifier and Type | Field and Description |
|---|---|
| private ReadHandler | |
| private boolean | |
| private final MultipartEntry | |
| private NIOInputStream | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | MultipartEntryNIOInputStream(final MultipartEntry
MultipartEntry the {@link NIOInputStream belongs to.Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Overrides java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. |
| public void | close()
Overrides java. Implements java. Closes this input stream and releases any system resources associated with the stream. |
| public Buffer | getBuffer()
Implements org.
Returns the the duplicate of the underlying |
| protected void | initialize(final NIOInputStream
the parentNIOInputStream)Request NIOInputStream from which binary content will be supplied
|
| public boolean | |
| public boolean | |
| public void | mark(final int readlimit)
Overrides java. Marks the current position in this input stream. |
| public boolean | Returns: trueOverrides java. This |
| public void | notifyAvailable(final ReadHandler handler)
Implements org.
Notify the specified |
| public void | notifyAvailable(final ReadHandler handler, final int size)
Implements org.
Notify the specified |
| pack-priv void | |
| public int | read()
Implements abstract java. Reads the next byte of data from the input stream. |
| public int | read(final byte[] b, final int off, final int len)
Overrides java. Reads up to |
| public Buffer | readBuffer()
Implements org.
Returns the underlying |
| public Buffer | readBuffer(final int size)
Implements org.
Returns the |
| public int | |
| protected void | |
| public void | reset()
Overrides java. Repositions this stream to the position at the time the
|
| private static boolean | shouldNotifyNow(final int
the amount of data that must be available for a size, final int ReadHandler to be notified.the amount of data currently available. available)Returns: |
| public long | skip(final long n)
Overrides java. Skips over and discards |
| handler | back to summary |
|---|---|
| private ReadHandler handler | |
| isClosed | back to summary |
|---|---|
| private boolean isClosed | |
| multipartEntry | back to summary |
|---|---|
| private final MultipartEntry multipartEntry | |
| parentNIOInputStream | back to summary |
|---|---|
| private NIOInputStream parentNIOInputStream | |
| requestedSize | back to summary |
|---|---|
| private int requestedSize | |
| MultipartEntryNIOInputStream | back to summary |
|---|---|
| public MultipartEntryNIOInputStream(final MultipartEntry multipartEntry) Constructs a new
| |
| available | back to summary |
|---|---|
| public int available() throws IOException Overrides java. Doc from java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. The read might be on the same thread or another thread. A single read or skip of this many bytes will not block, but may read or skip fewer bytes. Note that while some implementations of A subclass's implementation of this method may choose to throw an
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| getBuffer | back to summary |
|---|---|
| public Buffer getBuffer() Implements org. Doc from org.
Returns the the duplicate of the underlying
| |
| initialize | back to summary |
|---|---|
protected void initialize(final NIOInputStream parentNIOInputStream)
| |
| isFinished | back to summary |
|---|---|
| public boolean isFinished() Implements org.
| |
| isReady | back to summary |
|---|---|
| public boolean isReady() Implements org.
| |
| mark | back to summary |
|---|---|
| public void mark(final int readlimit) Overrides java. Doc from 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. This
| |
| notifyAvailable | back to summary |
|---|---|
| public void notifyAvailable(final ReadHandler handler) Implements org. Doc from org.
Notify the specified Invoking this method is equivalent to calling: notifyAvailable(handler, 1).
| |
| notifyAvailable | back to summary |
|---|---|
| public void notifyAvailable(final ReadHandler handler, final int size) Implements org. Doc from org.
Notify the specified
| |
| onDataCame | back to summary |
|---|---|
| pack-priv void onDataCame() throws Exception Append available bytes to the input stream | |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public int read(final byte[] b, final int off, final 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
| |
| readBuffer | back to summary |
|---|---|
| public Buffer readBuffer() Implements org. Doc from org.
Returns the underlying
| |
| readBuffer | back to summary |
|---|---|
| public Buffer readBuffer(final int size) Implements org. Doc from org.
Returns the
| |
| readyData | back to summary |
|---|---|
| public int readyData() Implements org.
| |
| recycle | back to summary |
|---|---|
| protected void recycle() | |
| reset | back to summary |
|---|---|
| public void reset() throws IOException Overrides java. Doc from java. Repositions this stream to the position at the time the
The general contract of
| |
| shouldNotifyNow | back to summary |
|---|---|
private static boolean shouldNotifyNow(final int size, final int available)
| |
| skip | back to summary |
|---|---|
| public long skip(final long n) throws IOException Overrides java. Doc from java. Skips over and discards
| |