org.icepdf.core.pobjects
Class ObjectStream

java.lang.Object
  extended by org.icepdf.core.pobjects.Dictionary
      extended by org.icepdf.core.pobjects.Stream
          extended by org.icepdf.core.pobjects.ObjectStream

public class ObjectStream
extends Stream

Since:
2.0
Author:
Mark Collette

Field Summary
 
Fields inherited from class org.icepdf.core.pobjects.Dictionary
entries, inited, isDeleted, isNew, library, SUBTYPE_KEY, TYPE_KEY
 
Constructor Summary
ObjectStream(Library l, java.util.Hashtable h, SeekableInputConstrainedWrapper streamInputWrapper)
          Create a new instance of a Stream.
 
Method Summary
 void dispose(boolean cache)
          Despose of references to images and decoded byte streams.
 void init()
          Initiate the Dictionary.
 boolean loadObject(Library library, int objectIndex)
           
 
Methods inherited from class org.icepdf.core.pobjects.Stream
getBlackIs1, getBlackIs1OrNull, getBytes, getImage, getInputStreamForDecodedStreamBytes, getPObjectReference, getStreamInput, isImageMask, isInlineImage, setInlineImage, setPObjectReference, toString
 
Methods inherited from class org.icepdf.core.pobjects.Dictionary
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getObject, isDeleted, isNew, setDeleted, setNew
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectStream

public ObjectStream(Library l,
                    java.util.Hashtable h,
                    SeekableInputConstrainedWrapper streamInputWrapper)
Create a new instance of a Stream.

Parameters:
l - library containing a hash of all document objects
h - hashtable of parameters specific to the Stream object.
streamInputWrapper - Accessor to stream byte data
Method Detail

init

public void init()
Description copied from class: Dictionary
Initiate the Dictionary. Retrieve any needed attributes.

Overrides:
init in class Dictionary

loadObject

public boolean loadObject(Library library,
                          int objectIndex)

dispose

public void dispose(boolean cache)
Description copied from class: Stream
Despose of references to images and decoded byte streams. Memory optimization

Overrides:
dispose in class Stream