net.esper.util
Class SimpleByteArrayOutputStream
java.lang.Object
java.io.OutputStream
net.esper.util.SimpleByteArrayOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class SimpleByteArrayOutputStream
- extends OutputStream
Output stream that relies on a simple byte array, unchecked.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleByteArrayOutputStream
public SimpleByteArrayOutputStream()
- Ctor.
SimpleByteArrayOutputStream
public SimpleByteArrayOutputStream(int initSize)
- Ctor.
- Parameters:
initSize
- initial size
write
public final void write(byte[] b)
- Overrides:
write
in class OutputStream
write
public final void write(byte[] b,
int off,
int len)
- Overrides:
write
in class OutputStream
write
public final void write(int b)
- Specified by:
write
in class OutputStream
getInputStream
public InputStream getInputStream()
- Return the input stream for the output buffer.
- Returns:
- input stream for existing buffer