Class ByteSourceInputStream.CacheReadingInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.commons.imaging.common.bytesource.ByteSourceInputStream.CacheReadingInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- ByteSourceInputStream
private class ByteSourceInputStream.CacheReadingInputStream extends java.io.InputStream
-
-
Field Summary
Fields Modifier and Type Field Description private ByteSourceInputStream.CacheBlock
block
private int
blockIndex
private boolean
readFirst
-
Constructor Summary
Constructors Modifier Constructor Description private
CacheReadingInputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
int
read(byte[] array, int off, int len)
long
skip(long n)
-
-
-
Field Detail
-
block
private ByteSourceInputStream.CacheBlock block
-
readFirst
private boolean readFirst
-
blockIndex
private int blockIndex
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] array, int off, int len) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException
- Overrides:
skip
in classjava.io.InputStream
- Throws:
java.io.IOException
-
-