public class LimitedByteOutput extends ByteOutputStream
byteOutput| Constructor and Description |
|---|
LimitedByteOutput(ByteOutput byteOutput,
long limit)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(byte[] b,
int off,
int len)
Write some of the bytes from the given array to the stream.
|
void |
write(int b)
Writes to the output stream the eight low-order bits of the argument
b. |
close, flush, writepublic LimitedByteOutput(ByteOutput byteOutput, long limit)
byteOutput - the byte output to write tolimit - the byte limitpublic void write(int b)
throws IOException
b. The 24 high-order bits of
b are ignored.write in interface ByteOutputwrite in class ByteOutputStreamb - the byte to writeIOException - if an error occurspublic void write(byte[] b,
int off,
int len)
throws IOException
write in interface ByteOutputwrite in class ByteOutputStreamb - the byte arrayoff - the index to start writing fromlen - the number of bytes to writeIOException - if an error occursCopyright © 2017 JBoss by Red Hat. All rights reserved.