public class ByteArrayOutputStream extends OutputStream
Constructor and Description |
---|
ByteArrayOutputStream() |
ByteArrayOutputStream(int capacity) |
Modifier and Type | Method and Description |
---|---|
boolean |
endsWith(byte[] array) |
void |
reset() |
int |
size() |
byte[] |
toByteArray() |
ByteSequence |
toByteSequence() |
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 reset()
public ByteSequence toByteSequence()
public byte[] toByteArray()
public int size()
public boolean endsWith(byte[] array)
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.