Modified:
trunk/src/com/flaptor/util/parser/ParseOutput.java
trunk/src/com/flaptor/util/parser/PdfParser.java
Log:
added a missing file close()
Modified: trunk/src/com/flaptor/util/parser/ParseOutput.java
==============================================================================
--- trunk/src/com/flaptor/util/parser/ParseOutput.java (original)
+++ trunk/src/com/flaptor/util/parser/ParseOutput.java Thu Jun 4 12:29:34
2009
@@ -108,7 +108,7 @@
baseUri = getURI(baseUrl);
}
- protected void close(){
+ public void close(){
text = fields.get(CONTENT).toString();
text = text.replaceAll("(\\.\\s)+", ". ");
text = text.replaceAll("\\s\\.", ". ");
Modified: trunk/src/com/flaptor/util/parser/PdfParser.java
==============================================================================
--- trunk/src/com/flaptor/util/parser/PdfParser.java (original)
+++ trunk/src/com/flaptor/util/parser/PdfParser.java Thu Jun 4 12:29:34
2009
@@ -36,11 +36,12 @@
output.addFieldString(ParseOutput.CONTENT, text);
output.setTitle(title);
//System.out.println("ENCODING: "+encoding);
-System.out.println("TITLE: "+title);
-System.out.println("TEXT: "+text);
-System.out.println("LEN: "+text.length());
+//System.out.println("TITLE: "+title);
+//System.out.println("TEXT: "+text);
+//System.out.println("LEN: "+text.length());
} finally {
Execute.close(pdf);
+ Execute.close(output);
}
return output;
}