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