org.icepdf.core.io
Class SeekableByteArrayInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.ByteArrayInputStream
          extended by 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

Field Summary
 
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
 
Constructor Summary
SeekableByteArrayInputStream(byte[] buf)
           
SeekableByteArrayInputStream(byte[] buf, int offset, int length)
           
 
Method Summary
 void beginThreadAccess()
           
 void endThreadAccess()
           
 long getAbsolutePosition()
           
 java.io.InputStream getInputStream()
           
 long getLength()
           
 void seekAbsolute(long absolutePosition)
           
 void seekEnd()
           
 void seekRelative(long relativeOffset)
           
 
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
 
Methods inherited from interface org.icepdf.core.io.SeekableInput
available, close, mark, markSupported, read, read, read, reset, skip
 

Constructor Detail

SeekableByteArrayInputStream

public SeekableByteArrayInputStream(byte[] buf)

SeekableByteArrayInputStream

public SeekableByteArrayInputStream(byte[] buf,
                                    int offset,
                                    int length)
Method Detail

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