public interface Source
Sink
Modifier and Type | Method and Description |
---|---|
SeekableByteChannel |
channel()
Optional operation: Returns a seekable byte channel for
reading bytes.
|
InputStream |
stream()
Returns an input stream for reading bytes.
|
@CreatesObligation SeekableByteChannel channel() throws IOException
Because the intention of this interface is input, the returned channel
does not need to be able to write data and any attempt to do so may fail
with a NonWritableChannelException
.
IOException
- on any I/O error.UnsupportedOperationException
- if this operation is not supported.IllegalStateException
- if another seekable byte channel is not
available.@CreatesObligation InputStream stream() throws IOException
IOException
- on any I/O error.IllegalStateException
- if another input stream is not available.Copyright © 2012–2015 Schlichtherle IT Services. All rights reserved.