com.imagero.uio.io
Class FilterRandomAccess
java.lang.Object
java.io.InputStream
com.imagero.uio.io.FilterRandomAccess
- Direct Known Subclasses:
- TIFFStripInputStream
- public class FilterRandomAccess
- extends java.io.InputStream
same as FilterInputStream but with RandomAccess
Method Summary |
int |
available()
|
protected void |
checkPos()
|
void |
close()
does nothing, because we don't want to close RandomAccess just after we did only part of work. |
void |
mark(int i)
|
boolean |
markSupported()
|
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
void |
reset()
|
long |
skip(long l)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MARK_UNDEFINED
protected static long MARK_UNDEFINED
in
protected RandomAccessRO in
pos
protected long pos
mark
protected long mark
startPos
protected long startPos
FilterRandomAccess
public FilterRandomAccess(RandomAccessRO ra)
FilterRandomAccess
public FilterRandomAccess(RandomAccessRO in,
long startPos)
read
public int read()
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read(byte[] b)
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
checkPos
protected void checkPos()
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- does nothing, because we don't want to close RandomAccess just after we did only part of work.
- Throws:
java.io.IOException
available
public int available()
throws java.io.IOException
- Throws:
java.io.IOException
markSupported
public boolean markSupported()
mark
public void mark(int i)
reset
public void reset()
throws java.io.IOException
- Throws:
java.io.IOException
skip
public long skip(long l)
throws java.io.IOException
- Throws:
java.io.IOException