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, writeTo
flush, write
public void write(int b)
write
in class ByteArrayOutputStream
b
- 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 ByteArrayOutputStream
b
- the data.off
- the start offset in the data.len
- the number of bytes to write.Copyright © 2017 The Apache Software Foundation. All rights reserved.