Class SimpleByteArrayInputStream
java.lang.Object
java.io.InputStream
com.espertech.esper.common.internal.util.SimpleByteArrayInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Input stream that relies on a simple byte array, unchecked.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.InputStream
close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Constructor Details
-
SimpleByteArrayInputStream
public SimpleByteArrayInputStream(byte[] buf, int count) Ctor.- Parameters:
buf
- is the byte buffercount
- is the size of the buffer
-
-
Method Details
-
available
public final int available()- Overrides:
available
in classInputStream
-
read
public final int read()- Specified by:
read
in classInputStream
-
read
public final int read(byte[] b, int off, int len) - Overrides:
read
in classInputStream
-
skip
public final long skip(long n) - Overrides:
skip
in classInputStream
-