@Nonnull @ParametersAreNonnullByDefault
See: Description
Interface | Description |
---|---|
Sink |
A provider for output streams or seekable byte channels.
|
Source |
A provider for input streams or seekable byte channels.
|
Class | Description |
---|---|
AbstractSeekableChannel |
An abstract seekable byte channel.
|
AbstractSink |
An abstract provider for output streams or seekable byte channels.
|
AbstractSource |
An abstract provider for input streams or seekable byte channels.
|
BufferedReadOnlyChannel |
Provides buffered random read-only access to its decorated seekable byte
channel.
|
ByteBufferChannel |
Adapts a byte buffer to a seekable byte channel.
|
ChannelInputStream |
Adapts a
SeekableByteChannel to an input stream. |
ChannelOutputStream |
Adapts a
WritableByteChannel to an output stream. |
DecoratingInputStream |
An abstract decorator for an input stream.
|
DecoratingOutputStream |
An abstract decorator for an output stream.
|
DecoratingSeekableChannel |
An abstract decorator for a seekable byte channel.
|
DisconnectingInputStream |
An abstract decorator which protects the decorated stream from all access
unless it's open.
|
DisconnectingOutputStream |
An abstract decorator which protects the decorated stream from all access
unless it's open.
|
DisconnectingSeekableChannel |
An abstract decorator which protects the decorated channel from all access
unless it's open.
|
ImmutableBuffer |
A power buffer with immutable properties.
|
IntervalReadOnlyChannel |
Provides read-only access to an interval of its decorated seekable byte
channel.
|
LittleEndianOutputStream |
An output stream to write data in Little Endian (LE) format.
|
LockInputStream |
A decorator which protects all access to its input stream
via a
Lock . |
LockOutputStream |
A decorator which protects all access to its output stream
via a
Lock . |
LockSeekableChannel |
Protects all access to its decorated seekable byte channel via a
Lock object. |
MutableBuffer |
A power buffer with mutable properties.
|
OneTimeFoundry<S extends Closeable,C extends Channel> |
A source or sink which provides a given stream or channel at most once.
|
OneTimeSink |
A sink which can get used only once to obtain a given output stream or
seekable byte channel.
|
OneTimeSource |
A source which can get used only once to obtain a given input stream or
seekable byte channel.
|
PowerBuffer<This extends PowerBuffer<This>> |
Adapts a
ByteBuffer to provide an enhanced API, e.g. |
ReadOnlyChannel |
An abstract decorator for a seekable byte channel which throws a
NonWritableChannelException upon any attempt to modify the decorated
seekable byte channel. |
Streams |
Static utility methods for
InputStream s and OutputStream s. |
Streams.ReaderThread |
A pooled and cached daemon thread which runs tasks to read input streams.
|
Exception | Description |
---|---|
ClosedInputException |
Indicates that an input resource (stream, channel etc.) has been closed.
|
ClosedOutputException |
Indicates that an output resource (stream, channel etc.) has been closed.
|
ClosedStreamException |
Indicates that an input or output stream has been closed.
|
InputException |
Thrown if an error happened on the input side rather than the output side
when copying an
InputStream to an OutputStream . |
Note that some decorator classes for seekable byte channels implement their own virtual position. If you would like to use a decorated seekable byte channel again after you have finished using such a decorating seekable byte channel, then you need to synchronize their positions using the following idiom:
SeekableByteChannel sbc = ... try { SeekableInputChannel bic = new BufferedInputChannel(sbc); try { // Do any input on bic here... bic.seek(1); } finally { // Synchronize the positions. sbc.position(bic.position()); } // This assertion would fail if we hadn't done the position // synchronization! assert sbc.position() == 1; } finally { sbc.close(); }
Copyright © 2012–2014 Schlichtherle IT Services. All rights reserved.