public final class BufferOutputStream
extends java.io.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) |
public BufferOutputStream(int size)
public BufferOutputStream(byte[] buffer)
public BufferOutputStream(Buffer data)
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public Buffer getNextBuffer(int len) throws java.io.IOException
java.io.IOException
public void reset()
public Buffer toBuffer()
public byte[] toByteArray()
public int size()
Copyright © 2012. All Rights Reserved.