public interface BinaryNIOInputSource extends NIOInputSource
NIOInputSources to obtain the
incoming Buffer directly without having to
use intermediate objects to copy the data to.| Modifier and Type | Method and Description |
|---|---|
Buffer |
getBuffer()
Returns the the duplicate of the underlying
Buffer that backs this
NIOInputSource. |
Buffer |
readBuffer()
Returns the underlying
Buffer that backs this
NIOInputSource. |
Buffer |
readBuffer(int size)
|
isFinished, isReady, notifyAvailable, notifyAvailable, readyDataBuffer getBuffer()
Returns the the duplicate of the underlying
Buffer that backs this
NIOInputSource. The content of the returned buffer will be
that of the underlying buffer. Changes to returned buffer's content will
be visible in the underlying buffer, and vice versa; the two buffers'
position, limit, and mark values will be independent.
Buffer that backs this
NIOInputSource.Buffer readBuffer()
Returns the underlying Buffer that backs this
NIOInputSource. Unlike getBuffer(), this method
detaches the returned Buffer, so user becomes responsible for
handling the Buffer's life-cycle.
Buffer that backs this
NIOInputSource.Copyright © 2013 Oracle Corporation. All Rights Reserved.