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) |
write
public FixedBufferOutputStream(int n)
n
- Size of the buffer.public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] a, int off, int len) throws IOException
write
in class OutputStream
IOException
public void flush()
flush
in interface Flushable
flush
in class OutputStream
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
public byte[] getBuffer()
Copyright © 1999–2017 Apache OODT. All rights reserved.