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
ByteArrayInputStream implementation that does not synchronize methods.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionFastByteArrayInputStream(byte[] buf) FastByteArrayInputStream(byte[] buf, int count) 
- 
Method SummaryMethods inherited from class java.io.InputStreamclose, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
- 
Field Details- 
bufprotected byte[] bufOur byte buffer
- 
countprotected int countNumber of bytes that we can read from the buffer
- 
posprotected int posNumber of bytes that have been read from the buffer
 
- 
- 
Constructor Details- 
FastByteArrayInputStreampublic FastByteArrayInputStream(byte[] buf) 
- 
FastByteArrayInputStreampublic FastByteArrayInputStream(byte[] buf, int count) 
 
- 
- 
Method Details- 
availablepublic final int available()- Overrides:
- availablein class- InputStream
 
- 
readpublic final int read()- Specified by:
- readin class- InputStream
 
- 
readpublic final int read(byte[] b, int off, int len) - Overrides:
- readin class- InputStream
 
- 
skippublic final long skip(long n) - Overrides:
- skipin class- InputStream
 
 
-