Class SimpleByteArrayOutputStream
java.lang.Object
java.io.OutputStream
com.espertech.esper.common.internal.util.SimpleByteArrayOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Output stream that relies on a simple byte array, unchecked.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
Constructor Details
-
SimpleByteArrayOutputStream
public SimpleByteArrayOutputStream()Ctor. -
SimpleByteArrayOutputStream
public SimpleByteArrayOutputStream(int initSize) Ctor.- Parameters:
initSize
- initial size
-
-
Method Details
-
write
public final void write(byte[] b) - Overrides:
write
in classOutputStream
-
write
public final void write(byte[] b, int off, int len) - Overrides:
write
in classOutputStream
-
write
public final void write(int b) - Specified by:
write
in classOutputStream
-
getInputStream
Return the input stream for the output buffer.- Returns:
- input stream for existing buffer
-