]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Performance improvement when encoding images: Fixed an important hotspot by extending...
authorJeremias Maerki <jeremias@apache.org>
Sun, 13 Apr 2008 07:36:00 +0000 (07:36 +0000)
committerJeremias Maerki <jeremias@apache.org>
Sun, 13 Apr 2008 07:36:00 +0000 (07:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_95@647537 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/util/CloseBlockerOutputStream.java

index 7192e76d2d1b0b8c52e73a52d780cc44dd71a40f..c0db8c8b77de40725d4bf830b38d78213b54f0d5 100644 (file)
  
 package org.apache.fop.util;
 
-import java.io.FilterOutputStream;
 import java.io.IOException;
 import java.io.OutputStream;
 
+import org.apache.commons.io.output.ProxyOutputStream;
+
 /**
  * This is a decorator to block calls to close() to the underlying stream.
  */
-public class CloseBlockerOutputStream extends FilterOutputStream {
+public class CloseBlockerOutputStream extends ProxyOutputStream {
 
     /**
-     * @see java.io.FilterOutputStream#FilterOutputStream(OutputStream)
+     * Main constructor.
+     * @param out the underlying stream
      */
     public CloseBlockerOutputStream(OutputStream out) {
         super(out);
     }
 
-    /**
-     * {@inheritDoc}
-     */
+    /** {@inheritDoc} */
     public void close() throws IOException {
         try {
             flush();