public final class FastByteArrayOutputStream extends OutputStream
| Constructor and Description |
|---|
FastByteArrayOutputStream(int initSize)
Constructs a stream with the given initial size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
byte[] |
getByteArray()
Creates a newly allocated byte array.
|
void |
reset() |
int |
size() |
FastByteArrayInputStream |
toInputStream() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flushpublic FastByteArrayOutputStream(int initSize)
public byte[] getByteArray()
public void write(int b)
write in class OutputStreampublic void write(byte[] b)
write in class OutputStreampublic void write(byte[] b,
int off,
int len)
write in class OutputStreampublic int size()
public void reset()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreampublic FastByteArrayInputStream toInputStream()
Copyright © 2019. All rights reserved.