| ?????? |
|---|
StreamOutput(OutputStream out,
int bufferSize)
Constructs a
StreamOutput
. |
| ?????? | ????? |
|---|---|
void |
close()
Overrides the
Output.close(). |
void |
flush()
Overrides the
Output.flush(). |
protected OutputStream |
getOut()
Gets the output stream.
|
int |
write(ByteBuffer src)
Overrides the
Output.write(ByteBuffer). |
public StreamOutput(OutputStream out, int bufferSize)
StreamOutput
.out - the OutputStream object.bufferSize - the buffersize.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.protected OutputStream getOut()
Copyright © 2016 The Apache Software Foundation. All rights reserved.