aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/pdf/InMemoryStreamCache.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2003-07-04 20:12:59 +0000
committerJeremias Maerki <jeremias@apache.org>2003-07-04 20:12:59 +0000
commitb20dc2cfc93e6da5e76ec781b69cf2b27eaf2fdf (patch)
tree784c2f1d104d8accfd6a3d351a9d16f41203e2a9 /src/java/org/apache/fop/pdf/InMemoryStreamCache.java
parent00083a25cd9a6a811bc4ff736ec5ec2be89dcd00 (diff)
downloadxmlgraphics-fop-b20dc2cfc93e6da5e76ec781b69cf2b27eaf2fdf.tar.gz
xmlgraphics-fop-b20dc2cfc93e6da5e76ec781b69cf2b27eaf2fdf.zip
Remove unused code
Use IO methods from Commons IO git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196601 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/pdf/InMemoryStreamCache.java')
-rw-r--r--src/java/org/apache/fop/pdf/InMemoryStreamCache.java27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/java/org/apache/fop/pdf/InMemoryStreamCache.java b/src/java/org/apache/fop/pdf/InMemoryStreamCache.java
index ab464184f..6c8710607 100644
--- a/src/java/org/apache/fop/pdf/InMemoryStreamCache.java
+++ b/src/java/org/apache/fop/pdf/InMemoryStreamCache.java
@@ -51,7 +51,6 @@
package org.apache.fop.pdf;
import java.io.ByteArrayOutputStream;
-import java.io.ByteArrayInputStream;
import java.io.OutputStream;
import java.io.IOException;
@@ -106,32 +105,6 @@ public class InMemoryStreamCache implements StreamCache {
}
/**
- * Filter the cache with the supplied PDFFilter.
- * @param filter the filter to apply
- * @throws IOException if an IO error occurs
- */
- public void applyFilter(PDFFilter filter) throws IOException {
- if (output == null) {
- return;
- }
-
- output.close();
-
- // make inputstream from copy of outputted bytes
- int size = getSize();
- ByteArrayInputStream input =
- new ByteArrayInputStream(output.toByteArray());
-
- // reset output
- output.reset();
-
- // run filter
- filter.encode(input, output, size);
- input.close();
- output.close();
- }
-
- /**
* Outputs the cached bytes to the given stream.
* @param out the output stream to write to
* @return the number of bytes written