public class BufferedOutputAdapter
extends java.io.OutputStream
| Constructor and Description |
|---|
BufferedOutputAdapter(CompactObjectOutput _output,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
discardData(boolean b)
Prevents output to connected stream, written bytes are discarded silently if this flag is set.
|
void |
flush() |
void |
write(byte[] data,
int offset,
int length) |
void |
write(int b) |
void |
writeAllowed(boolean b)
Allows output to connected stream, if this flag is not set but bytes are written, an IO-Exception will be raised.
|
void |
writeBuffer() |
public BufferedOutputAdapter(CompactObjectOutput _output, int bufferSize)
public void writeBuffer()
throws java.io.IOException
java.io.IOExceptionpublic void writeAllowed(boolean b)
public void discardData(boolean b)
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] data,
int offset,
int length)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.