diff options
author | Jeremias Maerki <jeremias@apache.org> | 2003-07-04 20:12:59 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2003-07-04 20:12:59 +0000 |
commit | b20dc2cfc93e6da5e76ec781b69cf2b27eaf2fdf (patch) | |
tree | 784c2f1d104d8accfd6a3d351a9d16f41203e2a9 /src/java/org/apache/fop/pdf/InMemoryStreamCache.java | |
parent | 00083a25cd9a6a811bc4ff736ec5ec2be89dcd00 (diff) | |
download | xmlgraphics-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.java | 27 |
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 |