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