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