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, writepublic BufferOutputStream(int size)
public BufferOutputStream(byte[] buffer)
public BufferOutputStream(Buffer data)
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic Buffer getNextBuffer(int len) throws IOException
IOExceptionpublic void reset()
public Buffer toBuffer()
public byte[] toByteArray()
public int size()
Copyright © 2010–2025 FuseSource, Corp.. All rights reserved.