/** * Wraps the {@link PDFParser#parseCOSStream} to check rules on 'stream' and 'endstream' * keywords. {@link #checkStreamKeyWord()} and {@link #checkEndstreamKeyWord()} * * @param dic dictionary that goes with this stream. * * @return parsed pdf stream. * * @throws IOException if an error occurred reading the stream, like problems with reading * length attribute, stream does not end with 'endstream' after data read, stream too short etc. */ @Override protected COSStream parseCOSStream(COSDictionary dic) throws IOException { checkStreamKeyWord(); COSStream result = super.parseCOSStream(dic); checkEndstreamKeyWord(); return result; }
/** * Wraps the {@link PDFParser#parseCOSStream} to check rules on 'stream' and 'endstream' * keywords. {@link #checkStreamKeyWord()} and {@link #checkEndstreamKeyWord()} * * @param dic dictionary that goes with this stream. * * @return parsed pdf stream. * * @throws IOException if an error occurred reading the stream, like problems with reading * length attribute, stream does not end with 'endstream' after data read, stream too short etc. */ @Override protected COSStream parseCOSStream(COSDictionary dic) throws IOException { checkStreamKeyWord(); COSStream result = super.parseCOSStream(dic); checkEndstreamKeyWord(); return result; }
/** * Wraps the {@link PDFParser#parseCOSStream} to check rules on 'stream' and 'endstream' * keywords. {@link #checkStreamKeyWord()} and {@link #checkEndstreamKeyWord()} * * @param dic dictionary that goes with this stream. * * @return parsed pdf stream. * * @throws IOException if an error occurred reading the stream, like problems with reading * length attribute, stream does not end with 'endstream' after data read, stream too short etc. */ @Override protected COSStream parseCOSStream(COSDictionary dic) throws IOException { checkStreamKeyWord(); COSStream result = super.parseCOSStream(dic); checkEndstreamKeyWord(); return result; }