public class MaxByteArrayOutputStream
extends java.io.ByteArrayOutputStream
| 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.
|
public void write(int b)
write in class java.io.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 java.io.ByteArrayOutputStreamb - the data.off - the start offset in the data.len - the number of bytes to write.Copyright © 2012 The Apache Software Foundation