Package org.apache.myfaces.util.lang
Class FastByteArrayInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.myfaces.util.lang.FastByteArrayInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class FastByteArrayInputStream extends InputStream
ByteArrayInputStream implementation that does not synchronize methods.
-
-
Constructor Summary
Constructors Constructor Description FastByteArrayInputStream(byte[] buf)
FastByteArrayInputStream(byte[] buf, int count)
-
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)
long
skip(long n)
-
Methods inherited from class java.io.InputStream
close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, transferTo
-
-
-
-
Method Detail
-
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
-
-