@NotThreadSafe @CleanupObligation public class ChannelOutputStream extends OutputStream
WritableByteChannel to an output stream.ChannelInputStream| Modifier and Type | Field and Description |
|---|---|
protected WritableByteChannel |
channel
The adapted nullable writable byte channel.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ChannelOutputStream() |
|
ChannelOutputStream(WritableByteChannel channel) |
@Nullable protected WritableByteChannel channel
protected ChannelOutputStream()
public ChannelOutputStream(@WillCloseWhenClosed WritableByteChannel channel)
@DischargesObligation
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic final void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionCopyright © 2012–2014 Schlichtherle IT Services. All rights reserved.