Class StreamValidationProcess

    • Constructor Detail

      • StreamValidationProcess

        public StreamValidationProcess()
    • Method Detail

      • checkFilters

        protected void checkFilters​(COSStream stream,
                                    PreflightContext context)
        This method checks if one of declared Filter is LZWdecode. If LZW is found, the result list is updated with an error code.
        Parameters:
        stream - the stream to check.
        context - the preflight context.
      • readUntilStream

        private boolean readUntilStream​(java.io.InputStream ra)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • checkDictionaryEntries

        protected void checkDictionaryEntries​(PreflightContext context,
                                              COSStream streamObj)
        Check dictionary entries. Only the Length entry is mandatory. In a PDF/A file, F, FFilter and FDecodeParms are forbidden
        Parameters:
        context - the preflight context.
        streamObj - the stream to check.
      • addStreamLengthValidationError

        private void addStreamLengthValidationError​(PreflightContext context,
                                                    COSObject cObj,
                                                    int length,
                                                    java.lang.String endStream)