aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-11-13 13:17:27 +0000
committerferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-11-13 13:17:27 +0000
commit4ab9ca91b1aa314b783e0ef84e92f626e923ad25 (patch)
treee6d82fc8b87e712546bc703983af8cc912ea3415
parentafd27f636eaf5b23227d93405700e6dc7fdfb156 (diff)
downloadpdf-as-3-4ab9ca91b1aa314b783e0ef84e92f626e923ad25.tar.gz
pdf-as-3-4ab9ca91b1aa314b783e0ef84e92f626e923ad25.tar.bz2
pdf-as-3-4ab9ca91b1aa314b783e0ef84e92f626e923ad25.zip
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@418 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
-rw-r--r--src/main/java/at/knowcenter/wag/exactparser/parsing/PDFUtils.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/at/knowcenter/wag/exactparser/parsing/PDFUtils.java b/src/main/java/at/knowcenter/wag/exactparser/parsing/PDFUtils.java
index 88476be..f126365 100644
--- a/src/main/java/at/knowcenter/wag/exactparser/parsing/PDFUtils.java
+++ b/src/main/java/at/knowcenter/wag/exactparser/parsing/PDFUtils.java
@@ -21,6 +21,8 @@ import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
+import org.apache.log4j.Logger;
+
import at.knowcenter.wag.exactparser.ByteArrayUtils;
import at.knowcenter.wag.exactparser.parsing.results.ArrayParseResult;
import at.knowcenter.wag.exactparser.parsing.results.BooleanParseResult;
@@ -62,6 +64,7 @@ import at.knowcenter.wag.exactparser.parsing.results.XRefSubSectionParseResult;
*/
public abstract class PDFUtils
{
+ private static Logger log = Logger.getLogger(PDFUtils.class);
public static boolean isWhitespace(final byte data)
{
@@ -1007,7 +1010,7 @@ public abstract class PDFUtils
pr = parseName(pdf, index);
break;
default:
- throw new RuntimeException("Unknown first_byte when parsing an unknown object at index=" + index + ".");
+ throw new RuntimeException("Unknown first_byte " + first_byte + "' when parsing an unknown object at index=" + index + ".");
// assert false : "nyi or invalid char";
}
assert pr != null;