public class ChannelPipedOutputStream
extends java.io.OutputStream
implements java.nio.channels.Channel
Modifier and Type | Field and Description |
---|---|
private byte[] |
b |
private boolean |
closed |
private ChannelPipedSink |
sink |
Constructor and Description |
---|
ChannelPipedOutputStream(ChannelPipedSink sink) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
boolean |
isOpen() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int i) |
private final ChannelPipedSink sink
private final byte[] b
private boolean closed
public ChannelPipedOutputStream(ChannelPipedSink sink)
public void write(int i) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public boolean isOpen()
isOpen
in interface java.nio.channels.Channel
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface java.nio.channels.Channel
close
in class java.io.OutputStream
java.io.IOException