public class MaxByteArrayOutputStream extends ByteArrayOutputStream
buf, count| Constructor and Description |
|---|
MaxByteArrayOutputStream(int maxBytes)
Create.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(byte[] b,
int off,
int len)
Writes
len bytes from the specified byte array
starting at offset off to this byte array output stream. |
void |
write(int b)
Writes the specified byte to this byte array output stream.
|
close, reset, size, toByteArray, toString, toString, toString, writeToflush, writepublic void write(int b)
write in class ByteArrayOutputStreamb - the byte to be written.public void write(byte[] b,
int off,
int len)
len bytes from the specified byte array
starting at offset off to this byte array output stream.
Any bytes after the first maxBytes will be ignored.write in class ByteArrayOutputStreamb - the data.off - the start offset in the data.len - the number of bytes to write.Copyright © 2019 The Apache Software Foundation. All Rights Reserved.