Class DecodedObjectStreamParser


  • public class DecodedObjectStreamParser
    extends COSParser
    This class reads objects from decoded object stream.
    Author:
    Sergey Shemyakov
    • Constructor Detail

      • DecodedObjectStreamParser

        public DecodedObjectStreamParser​(ASInputStream inputStream,
                                         COSStream objectStream,
                                         COSKey streamKey,
                                         COSDocument doc)
                                  throws IOException
        Constructor from decoded object stream data and COSStream.
        Parameters:
        inputStream - contains decoded object stream.
        objectStream - is COSStream that is being parsed.
        streamKey - is key of given COSStream.
        Throws:
        IOException
    • Method Detail

      • containsObject

        public boolean containsObject​(int objNum)
        Returns:
        true if object stream contains object with number objNum.
      • getInternalObjectsKeys

        public List<COSKey> getInternalObjectsKeys()
        Returns:
        list of keys of all objects, contained inside this object stream.
      • getObject

        public COSObject getObject​(COSKey key)
                            throws IOException
        Parses object from object stream.
        Parameters:
        key - is key of object to parse. Object with this key should be present in this object stream.
        Returns:
        object for given key or empty COSObject if key is not present.
        Throws:
        IOException