Class XmlResultParser
- java.lang.Object
-
- org.apache.pdfbox.preflight.parser.XmlResultParser
-
public class XmlResultParser extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description XmlResultParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateResponseWithError(org.w3c.dom.Document rdocument, java.lang.String pdfType, ValidationResult result, org.w3c.dom.Element preflight)protected org.w3c.dom.ElementgenerateResponseSkeleton(org.w3c.dom.Document rdocument, java.lang.String name, long duration)org.w3c.dom.Elementvalidate(java.io.File file)Validate the given file.org.w3c.dom.Elementvalidate(org.w3c.dom.Document rdocument, java.io.File file)Validate the given file.
-
-
-
Method Detail
-
validate
public org.w3c.dom.Element validate(java.io.File file) throws java.io.IOExceptionValidate the given file.- Parameters:
file- the file to be validated- Returns:
- the validation results as XML
- Throws:
java.io.IOException- if something went wrong
-
validate
public org.w3c.dom.Element validate(org.w3c.dom.Document rdocument, java.io.File file) throws java.io.IOExceptionValidate 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:
java.io.IOException- if something went wrong
-
createResponseWithError
protected void createResponseWithError(org.w3c.dom.Document rdocument, java.lang.String pdfType, ValidationResult result, org.w3c.dom.Element preflight)
-
generateResponseSkeleton
protected org.w3c.dom.Element generateResponseSkeleton(org.w3c.dom.Document rdocument, java.lang.String name, long duration)
-
-