| ?????? |
|---|
ChannelOutput(WritableByteChannel channel)
Constructs a
ChannelOutput. |
| ?????? | ????? |
|---|---|
void |
close()
Overrides the
Output.close(). |
void |
flush()
Overrides the
Output.flush(). |
int |
write(ByteBuffer src)
Overrides the
Output.write(ByteBuffer). |
public ChannelOutput(WritableByteChannel channel)
ChannelOutput.channel - the WritableByteChannel object.public int write(ByteBuffer src) throws IOException
Output.write(ByteBuffer).
Writes a sequence of bytes to this output from the given buffer.write ???? Outputsrc - The buffer from which bytes are to be retrieved.IOException - if an I/O error occurs.public void flush()
throws IOException
Output.flush(). Flushes this output and forces any
buffered output bytes to be written out if the under layer output method
support.flush ???? OutputIOException - if an I/O error occurs.public void close()
throws IOException
Output.close(). Closes this output and releases any
system resources associated with the under layer output.close ???? OutputIOException - if an I/O error occurs.Copyright © 2016 The Apache Software Foundation. All rights reserved.