Extended API to set filename and content together

This commit is contained in:
Philip Helger
2024-07-09 17:32:01 +02:00
parent c37526b170
commit d3df17525d

View File

@@ -324,13 +324,16 @@ public class PDFValidator extends Validator {
} catch (IOException ex) {
throw new IrrecoverableValidationError("Could not read file");
}
}
public void setFileContents(byte[] fileContents) {
this.fileContents = fileContents;
}
public void setFileContents(byte[] fileContents) {
this.fileContents = fileContents;
}
public void setFilenameAndContents(String filename, byte[] fileContents) {
this.pdfFilename = filename;
this.fileContents = fileContents;
}
public String getRawXML() {
return zfXML;