public abstract class ServerOutputStream extends OutputStream
OutputStream
with additional methods to write cached
ByteBuffer
instances.Constructor and Description |
---|
ServerOutputStream() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close() |
abstract void |
flush() |
abstract void |
write(ByteBuffer cachedBuffer)
Writes a cached
ByteBuffer . |
abstract void |
write(int b) |
write, write
public abstract void write(ByteBuffer cachedBuffer) throws IOException
Writes a cached ByteBuffer
.
This is to enable efficient I/O of writing cached content.
cachedBuffer
- Cached ByteBuffer
that should never change its
content.IOException
- If fails to write the ByteBuffer
.public abstract void write(int b) throws IOException
write
in class OutputStream
IOException
public abstract void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public abstract void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2005–2016. All rights reserved.