|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.ByteArrayInputStream
org.jimageanalyst.io.SeekableByteArrayInputStream
public class SeekableByteArrayInputStream
ByteArrayInputStream that supports seeking.
| Field Summary |
|---|
| Fields inherited from class java.io.ByteArrayInputStream |
|---|
buf, count, mark, pos |
| Constructor Summary | |
|---|---|
SeekableByteArrayInputStream(byte[] buf)
Constructs a SeekableByteArrayInputStream with
the specified buffer. |
|
| Method Summary | |
|---|---|
void |
seek(int seekPos)
Seeks to a specific position in the underlaying byte array. |
| Methods inherited from class java.io.ByteArrayInputStream |
|---|
available, close, mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.io.InputStream |
|---|
read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SeekableByteArrayInputStream(byte[] buf)
SeekableByteArrayInputStream with
the specified buffer.
buf - the input buffer| Method Detail |
|---|
public void seek(int seekPos)
seekPos - the position to seek to (0 based)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||