From 26db794f3622761cecde0b4e03a1c82c6f0c96e8 Mon Sep 17 00:00:00 2001 From: arved Date: Fri, 22 Dec 2000 02:57:04 +0000 Subject: JDK 1.1.x changes. Thanks to Art Welch. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193920 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/pdf/PDFStream.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/org/apache/fop/pdf') diff --git a/src/org/apache/fop/pdf/PDFStream.java b/src/org/apache/fop/pdf/PDFStream.java index 4ac8b75e2..b374b062c 100644 --- a/src/org/apache/fop/pdf/PDFStream.java +++ b/src/org/apache/fop/pdf/PDFStream.java @@ -110,7 +110,7 @@ public class PDFStream extends PDFObject { public void addFilter(PDFFilter filter) { if (filter != null) { - _filters.add(filter); + _filters.addElement(filter); } } @@ -233,7 +233,7 @@ public class PDFStream extends PDFObject { } */ public byte[] toPDF() { - throw new UnsupportedOperationException(); + throw new RuntimeException(); } @@ -301,8 +301,8 @@ public class PDFStream extends PDFObject { filter.setApplied(true); } // place the names in our local vector in reverse order - names.add(0, filter.getName()); - parms.add(0, filter.getDecodeParms()); + names.insertElementAt(filter.getName(), 0); + parms.insertElementAt(filter.getDecodeParms(), 0); } // now build up the filter entries for the dictionary -- cgit v1.2.3