Class XmlResultParser
java.lang.Object
org.apache.pdfbox.preflight.parser.XmlResultParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Map<ValidationResult.ValidationError, Integer> protected voidcreateResponseWithError(Document rdocument, String pdfType, ValidationResult result, Element preflight) private ElementgenerateFailureResponse(Document rdocument, String name, long duration, String pdfType, Exception e) protected ElementgenerateResponseSkeleton(Document rdocument, String name, long duration) Validate the given file.private ElementValidate the given file.private Element
-
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
-
validate
- Throws:
IOException
-
validate
- Throws:
IOException
-
createResponseWithError
protected void createResponseWithError(Document rdocument, String pdfType, ValidationResult result, Element preflight) -
cleanErrorList
private Map<ValidationResult.ValidationError,Integer> cleanErrorList(List<ValidationResult.ValidationError> errors) -
generateFailureResponse
-
generateResponseSkeleton
-