public final class BufferOutputStream extends OutputStream
Constructor and Description |
---|
BufferOutputStream(Buffer data) |
BufferOutputStream(byte[] buffer) |
BufferOutputStream(int size) |
Modifier and Type | Method and Description |
---|---|
Buffer |
getNextBuffer(int len) |
void |
reset() |
int |
size() |
Buffer |
toBuffer() |
byte[] |
toByteArray() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
close, flush, write
public BufferOutputStream(int size)
public BufferOutputStream(byte[] buffer)
public BufferOutputStream(Buffer data)
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public Buffer getNextBuffer(int len) throws IOException
IOException
public void reset()
public Buffer toBuffer()
public byte[] toByteArray()
public int size()
Copyright © 2010–2021 FuseSource, Corp.. All rights reserved.