Package org.jppf.utils.streams
Class BoundedByteArrayOutputStream
java.lang.Object
java.io.OutputStream
org.jppf.utils.streams.BoundedByteArrayOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
A byte ArrayOutputStream with a maximum size of data that can be written into it.
- Author:
- Laurent Cohen
-
Constructor Summary
ConstructorsConstructorDescriptionBoundedByteArrayOutputStream(byte[] buf, int offset, int length) Initialize this stream. -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
Constructor Details
-
BoundedByteArrayOutputStream
public BoundedByteArrayOutputStream(byte[] buf, int offset, int length) Initialize this stream.- Parameters:
buf- the backing buffer.offset- start position in the backing buffer.length- maximum length of data that can be written.
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-