You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by le...@apache.org on 2020/09/20 15:10:17 UTC
svn commit: r1881871 -
/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/parser/PreflightParser.java
Author: lehmi
Date: Sun Sep 20 15:10:16 2020
New Revision: 1881871
URL: http://svn.apache.org/viewvc?rev=1881871&view=rev
Log:
PDFBOX-4836: remove constructors with a ScratchFile as those aren't needed any more when reading a pdf
Modified:
pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/parser/PreflightParser.java
Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/parser/PreflightParser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/parser/PreflightParser.java?rev=1881871&r1=1881870&r2=1881871&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/parser/PreflightParser.java (original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/parser/PreflightParser.java Sun Sep 20 15:10:16 2020
@@ -41,7 +41,6 @@ import org.apache.pdfbox.cos.COSObjectKe
import org.apache.pdfbox.cos.COSStream;
import org.apache.pdfbox.cos.COSString;
import org.apache.pdfbox.io.RandomAccessReadBufferedFile;
-import org.apache.pdfbox.io.ScratchFile;
import org.apache.pdfbox.pdfparser.PDFParser;
import org.apache.pdfbox.pdfparser.XrefTrailerResolver.XRefType;
import org.apache.pdfbox.pdmodel.PDDocument;
@@ -106,18 +105,6 @@ public class PreflightParser extends PDF
/**
* Constructor.
*
- * @param file
- * @param scratch
- * @throws IOException if there is a reading error.
- */
- public PreflightParser(File file, ScratchFile scratch) throws IOException
- {
- super(new RandomAccessReadBufferedFile(file), scratch);
- }
-
- /**
- * Constructor.
- *
* @param filename
* @throws IOException if there is a reading error.
*/
@@ -127,18 +114,6 @@ public class PreflightParser extends PDF
}
/**
- * Constructor.
- *
- * @param filename
- * @param scratch
- * @throws IOException if there is a reading error.
- */
- public PreflightParser(String filename, ScratchFile scratch) throws IOException
- {
- this(new File(filename), scratch);
- }
-
- /**
* Add a validation error to the ValidationResult.
*
* @param error the validation error to be added