Class ContentStreamCOSParser

All Implemented Interfaces:
Closeable, AutoCloseable

class ContentStreamCOSParser extends BaseCOSParser
A component capable of parsing COS objects in a content stream as defined in in Chap 7.8.2 of PDF 32000-1:2008, where "Indirect objects and object references shall not be permitted at all".
  • Constructor Details

    • ContentStreamCOSParser

      ContentStreamCOSParser(org.sejda.io.SeekableSource source)
  • Method Details

    • nextParsedToken

      public COSBase nextParsedToken() throws IOException
      Specified by:
      nextParsedToken in class BaseCOSParser
      Returns:
      The next parsed basic type object from the stream or null if the next token is not a COSBase. Basic types are defined in Chap 7.3 of PDF 32000-1:2008 except for Chap 7.3.10. This method doesn't parse indirect objects definition because they are not permitted in contest stream.
      Throws:
      IOException - If there is an error during parsing.