org.icepdf.core.io
Class SeekableByteArrayInputStream
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
org.icepdf.core.io.SeekableByteArrayInputStream
- All Implemented Interfaces:
- java.io.Closeable, SeekableInput
public class SeekableByteArrayInputStream
- extends java.io.ByteArrayInputStream
- implements SeekableInput
- Since:
- 2.0
- Author:
- Mark Collette
| Fields inherited from class java.io.ByteArrayInputStream |
buf, count, mark, pos |
| 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 |
SeekableByteArrayInputStream
public SeekableByteArrayInputStream(byte[] buf)
SeekableByteArrayInputStream
public SeekableByteArrayInputStream(byte[] buf,
int offset,
int length)
seekAbsolute
public void seekAbsolute(long absolutePosition)
- Specified by:
seekAbsolute in interface SeekableInput
seekRelative
public void seekRelative(long relativeOffset)
- Specified by:
seekRelative in interface SeekableInput
seekEnd
public void seekEnd()
- Specified by:
seekEnd in interface SeekableInput
getAbsolutePosition
public long getAbsolutePosition()
- Specified by:
getAbsolutePosition in interface SeekableInput
getLength
public long getLength()
- Specified by:
getLength in interface SeekableInput
getInputStream
public java.io.InputStream getInputStream()
- Specified by:
getInputStream in interface SeekableInput
beginThreadAccess
public void beginThreadAccess()
- Specified by:
beginThreadAccess in interface SeekableInput
endThreadAccess
public void endThreadAccess()
- Specified by:
endThreadAccess in interface SeekableInput