Class XmlResultParser

java.lang.Object
org.apache.pdfbox.preflight.parser.XmlResultParser

public class XmlResultParser extends Object
  • Constructor Details

    • XmlResultParser

      public XmlResultParser()
  • Method Details

    • validate

      public Element validate(File file) throws IOException
      Validate the given file.
      Parameters:
      file - the file to be validated
      Returns:
      the validation results as XML
      Throws:
      IOException - if something went wrong
    • validate

      public Element validate(Document rdocument, File file) throws IOException
      Validate the given file. Add the validation results to the given XML tree.
      Parameters:
      rdocument - XML based validation results of a former run
      file - the file to be validated
      Returns:
      the validation results as XML
      Throws:
      IOException - if something went wrong
    • createResponseWithError

      protected void createResponseWithError(Document rdocument, String pdfType, ValidationResult result, Element preflight)
    • generateResponseSkeleton

      protected Element generateResponseSkeleton(Document rdocument, String name, long duration)