Package com.swiftmq.tools.util
Class FastByteArrayInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.swiftmq.tools.util.FastByteArrayInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class FastByteArrayInputStream extends java.io.InputStream
-
-
Constructor Summary
Constructors Constructor Description FastByteArrayInputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
int
read()
int
read(byte[] b, int off, int len)
void
setBuffer(byte[] buffer)
void
setBuffer(byte[] buffer, int pos, int len)
long
skip(long n)
-
-
-
Method Detail
-
setBuffer
public void setBuffer(byte[] buffer)
-
setBuffer
public void setBuffer(byte[] buffer, int pos, int len)
-
read
public int read()
- Specified by:
read
in classjava.io.InputStream
-
read
public int read(byte[] b, int off, int len)
- Overrides:
read
in classjava.io.InputStream
-
available
public int available()
- Overrides:
available
in classjava.io.InputStream
-
skip
public long skip(long n)
- Overrides:
skip
in classjava.io.InputStream
-
-