Package com.jbstrap.core.utils
Class FastByteArrayInputStream
java.lang.Object
java.io.InputStream
com.jbstrap.core.utils.FastByteArrayInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Since:
- 4.0
- Author:
- JBStrap
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.InputStream
close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Field Details
-
buf
protected byte[] buf -
count
protected int count -
pos
protected int pos
-
-
Constructor Details
-
FastByteArrayInputStream
public FastByteArrayInputStream(byte[] buf, int count)
-
-
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
-