Extended API to set filename and content together
This commit is contained in:
@@ -324,13 +324,16 @@ public class PDFValidator extends Validator {
|
|||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
throw new IrrecoverableValidationError("Could not read file");
|
throw new IrrecoverableValidationError("Could not read file");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFileContents(byte[] fileContents) {
|
public void setFileContents(byte[] fileContents) {
|
||||||
this.fileContents = fileContents;
|
this.fileContents = fileContents;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setFilenameAndContents(String filename, byte[] fileContents) {
|
||||||
|
this.pdfFilename = filename;
|
||||||
|
this.fileContents = fileContents;
|
||||||
|
}
|
||||||
|
|
||||||
public String getRawXML() {
|
public String getRawXML() {
|
||||||
return zfXML;
|
return zfXML;
|
||||||
|
|||||||
Reference in New Issue
Block a user