diff options
author | arved <arved@unknown> | 2000-12-22 02:57:04 +0000 |
---|---|---|
committer | arved <arved@unknown> | 2000-12-22 02:57:04 +0000 |
commit | 26db794f3622761cecde0b4e03a1c82c6f0c96e8 (patch) | |
tree | f63818a68a85a5eedee4eb3ce09b0329f100e8d4 /src/org/apache/fop | |
parent | 1c3467b23a7839ab29d4236af50ddcad56f4db5b (diff) | |
download | xmlgraphics-fop-26db794f3622761cecde0b4e03a1c82c6f0c96e8.tar.gz xmlgraphics-fop-26db794f3622761cecde0b4e03a1c82c6f0c96e8.zip |
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
Diffstat (limited to 'src/org/apache/fop')
-rw-r--r-- | src/org/apache/fop/configuration/ConfigurationParser.java | 2 | ||||
-rw-r--r-- | src/org/apache/fop/fo/FONode.java | 3 | ||||
-rw-r--r-- | src/org/apache/fop/fo/expr/PropertyTokenizer.java | 2 | ||||
-rw-r--r-- | src/org/apache/fop/layout/hyphenation/PatternParser.java | 12 | ||||
-rw-r--r-- | src/org/apache/fop/layout/hyphenation/TernaryTree.java | 2 | ||||
-rw-r--r-- | src/org/apache/fop/pdf/PDFStream.java | 8 |
6 files changed, 18 insertions, 11 deletions
diff --git a/src/org/apache/fop/configuration/ConfigurationParser.java b/src/org/apache/fop/configuration/ConfigurationParser.java index df59ca40f..a78a5677d 100644 --- a/src/org/apache/fop/configuration/ConfigurationParser.java +++ b/src/org/apache/fop/configuration/ConfigurationParser.java @@ -193,7 +193,7 @@ public class ConfigurationParser extends DefaultHandler { datatype = STRING; break; case IN_LIST + IN_VALUE: - list.add(text); + list.addElement(text); datatype = LIST; break; case IN_LIST + IN_SUBENTRY + IN_VALUE: diff --git a/src/org/apache/fop/fo/FONode.java b/src/org/apache/fop/fo/FONode.java index 87f7e55ce..c0245c59e 100644 --- a/src/org/apache/fop/fo/FONode.java +++ b/src/org/apache/fop/fo/FONode.java @@ -258,7 +258,8 @@ abstract public class FONode { */ public void rollback(Vector snapshot) { - this.marker = ((Integer)snapshot.remove(0)).intValue(); + this.marker = ((Integer)snapshot.elementAt(0)).intValue(); + snapshot.removeElementAt(0); if (this.marker == START) { diff --git a/src/org/apache/fop/fo/expr/PropertyTokenizer.java b/src/org/apache/fop/fo/expr/PropertyTokenizer.java index 47169fe59..667ac6ea8 100644 --- a/src/org/apache/fop/fo/expr/PropertyTokenizer.java +++ b/src/org/apache/fop/fo/expr/PropertyTokenizer.java @@ -83,7 +83,7 @@ class PropertyTokenizer { protected int currentUnitLength = 0; private int currentTokenStartIndex = 0; - private final String expr; + private /*final*/ String expr; private int exprIndex = 0; private int exprLength; private boolean recognizeOperator = false; diff --git a/src/org/apache/fop/layout/hyphenation/PatternParser.java b/src/org/apache/fop/layout/hyphenation/PatternParser.java index 96495b0b8..e8d33a5c4 100644 --- a/src/org/apache/fop/layout/hyphenation/PatternParser.java +++ b/src/org/apache/fop/layout/hyphenation/PatternParser.java @@ -195,7 +195,10 @@ public class PatternParser extends DefaultHandler implements PatternConsumer { else break; if ( space ) { - chars.delete(0,i); + //chars.delete(0,i); + for ( int countr = i ; countr < chars.length() ; countr++ ) + chars.setCharAt(countr - i, chars.charAt(countr)); + chars.setLength(chars.length() - i); if ( token.length() > 0 ) { word = token.toString(); token.setLength(0); @@ -209,8 +212,11 @@ public class PatternParser extends DefaultHandler implements PatternConsumer { break; } } - token.append(chars.substring(0,i)); - chars.delete(0,i); + token.append(chars.toString().substring(0,i)); + //chars.delete(0,i); + for ( int countr = i ; countr < chars.length() ; countr++ ) + chars.setCharAt(countr - i, chars.charAt(countr)); + chars.setLength(chars.length() - i); if ( space ) { word = token.toString(); token.setLength(0); diff --git a/src/org/apache/fop/layout/hyphenation/TernaryTree.java b/src/org/apache/fop/layout/hyphenation/TernaryTree.java index ec01994f3..f61531e97 100644 --- a/src/org/apache/fop/layout/hyphenation/TernaryTree.java +++ b/src/org/apache/fop/layout/hyphenation/TernaryTree.java @@ -534,7 +534,7 @@ public class TernaryTree implements Cloneable, Serializable { public void rewind() { - ns.clear(); + ns.removeAllElements(); ks.setLength(0); cur = root; run(); 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 |