Author: mattmann
Date: Sun Nov 18 14:07:28 2007
New Revision: 596143
URL: http://svn.apache.org/viewvc?rev=596143&view=rev
Log:
- fix for JDK 6 reliance introduced in TIKA-100 commit
Modified:
incubator/tika/trunk/src/main/java/org/apache/tika/parser/pdf/PDF2XHTML.java
Modified:
incubator/tika/trunk/src/main/java/org/apache/tika/parser/pdf/PDF2XHTML.java
URL:
http://svn.apache.org/viewvc/incubator/tika/trunk/src/main/java/org/apache/tika/parser/pdf/PDF2XHTML.java?rev=596143&r1=596142&r2=596143&view=diff
==============================================================================
---
incubator/tika/trunk/src/main/java/org/apache/tika/parser/pdf/PDF2XHTML.java
(original)
+++
incubator/tika/trunk/src/main/java/org/apache/tika/parser/pdf/PDF2XHTML.java
Sun Nov 18 14:07:28 2007
@@ -70,7 +70,7 @@
try {
handler.startDocument();
} catch (SAXException e) {
- throw new IOException("Unable to start a document", e);
+ throw new IOException("Unable to start a document: reason:
"+e.getMessage());
}
}
@@ -78,7 +78,7 @@
try {
handler.endDocument();
} catch (SAXException e) {
- throw new IOException("Unable to end a document", e);
+ throw new IOException("Unable to end a document: reason:
"+e.getMessage());
}
}
@@ -86,7 +86,7 @@
try {
handler.startElement("div");
} catch (SAXException e) {
- throw new IOException("Unable to start a page", e);
+ throw new IOException("Unable to start a page: reason:
"+e.getMessage());
}
}
@@ -94,7 +94,7 @@
try {
handler.endElement("div");
} catch (SAXException e) {
- throw new IOException("Unable to end a page", e);
+ throw new IOException("Unable to end a page: reason:
"+e.getMessage());
}
}
@@ -102,7 +102,7 @@
try {
handler.startElement("p");
} catch (SAXException e) {
- throw new IOException("Unable to start a paragraph", e);
+ throw new IOException("Unable to start a paragraph: reason:
"+e.getMessage());
}
}
@@ -110,7 +110,7 @@
try {
handler.endElement("p");
} catch (SAXException e) {
- throw new IOException("Unable to end a paragraph", e);
+ throw new IOException("Unable to end a paragraph: reason:
"+e.getMessage());
}
}
@@ -118,7 +118,7 @@
try {
handler.characters(text.getCharacter());
} catch (SAXException e) {
- throw new IOException("Unable to write a newline", e);
+ throw new IOException("Unable to write a newline: reason:
"+e.getMessage());
}
}
@@ -126,7 +126,7 @@
try {
handler.characters("\n");
} catch (SAXException e) {
- throw new IOException("Unable to write a newline", e);
+ throw new IOException("Unable to write a newline: reason:
"+e.getMessage());
}
}
@@ -135,7 +135,7 @@
try {
handler.characters(" ");
} catch (SAXException e) {
- throw new IOException("Unable to write a space", e);
+ throw new IOException("Unable to write a space: reason:
"+e.getMessage());
}
}