public class FixedBufferOutputStream extends OutputStream
| Constructor and Description |
|---|
FixedBufferOutputStream(int n)
Construct a fixed buffer output stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
byte[] |
getBuffer()
Get the buffer.
|
void |
write(byte[] a,
int off,
int len) |
void |
write(int b) |
writepublic FixedBufferOutputStream(int n)
n - Size of the buffer.public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] a,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
flush in interface Flushableflush in class OutputStreampublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreampublic byte[] getBuffer()
Copyright © 1999–2017 Apache OODT. All rights reserved.