diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-11-14 12:55:46 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-11-14 12:55:46 +0000 |
commit | 18536029a6533a850dd1508f938b0ad20f1a0e72 (patch) | |
tree | ce799e9527fc49e4bbb527c125920591b545c939 /src/java/org/apache/fop/area/CachedRenderPagesModel.java | |
parent | f848d591de7458a04b111d243935b08bbd47c5fd (diff) | |
download | xmlgraphics-fop-18536029a6533a850dd1508f938b0ad20f1a0e72.tar.gz xmlgraphics-fop-18536029a6533a850dd1508f938b0ad20f1a0e72.zip |
Updated from Jakarta Commons IO 1.0 to 1.1. CopyUtils.copy() becomes IOUtils.copy() again. CopyUtils in 1.0 was not ideal design decision.
Fixed most of the unappropriate System.err/System.out/Exception.printStackTrace(). Those that aren't fixed and are not legitimate calls (in main() methods etc.) are marked with a TODO item.
Some Javadocs and style updates.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@344111 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/area/CachedRenderPagesModel.java')
-rw-r--r-- | src/java/org/apache/fop/area/CachedRenderPagesModel.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/area/CachedRenderPagesModel.java b/src/java/org/apache/fop/area/CachedRenderPagesModel.java index 6737ccb5a..171b071c6 100644 --- a/src/java/org/apache/fop/area/CachedRenderPagesModel.java +++ b/src/java/org/apache/fop/area/CachedRenderPagesModel.java @@ -65,7 +65,7 @@ public class CachedRenderPagesModel extends RenderPagesModel { // load page from cache String name = (String)pageMap.get(p); File temp = new File(name); - System.out.println("page serialized to: " + temp.length()); + log.debug("page serialized to: " + temp.length()); ObjectInputStream in = new ObjectInputStream( new BufferedInputStream( new FileInputStream(temp))); @@ -74,7 +74,7 @@ public class CachedRenderPagesModel extends RenderPagesModel { temp.delete(); pageMap.remove(p); } catch (Exception e) { - e.printStackTrace(); + log.error(e); } } @@ -90,7 +90,7 @@ public class CachedRenderPagesModel extends RenderPagesModel { } } catch (Exception e) { // use error handler to handle this FOP or IO Exception - e.printStackTrace(); + log.error(e); } p.clear(); iter.remove(); @@ -123,7 +123,7 @@ public class CachedRenderPagesModel extends RenderPagesModel { tempstream.close(); pageMap.put(page, fname); } catch (Exception e) { - e.printStackTrace(); + log.error(e); } } } |