Class XmlResultParser
java.lang.Object
org.apache.pdfbox.preflight.parser.XmlResultParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateResponseWithError(Document rdocument, String pdfType, ValidationResult result, Element preflight) protected ElementgenerateResponseSkeleton(Document rdocument, String name, long duration) Validate the given file.Validate the given file.
-
Constructor Details
-
XmlResultParser
public XmlResultParser()
-
-
Method Details
-
validate
Validate the given file.- Parameters:
file- the file to be validated- Returns:
- the validation results as XML
- Throws:
IOException- if something went wrong
-
validate
Validate the given file. Add the validation results to the given XML tree.- Parameters:
rdocument- XML based validation results of a former runfile- 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
-