diff options
author | Steve Coffman <gears@apache.org> | 2000-10-26 14:33:37 +0000 |
---|---|---|
committer | Steve Coffman <gears@apache.org> | 2000-10-26 14:33:37 +0000 |
commit | bacbe7a0915fbb7b4c22b623f97a11352cf5d0b1 (patch) | |
tree | 53f8bc745c9f0060633b436a49250165e411af50 /lib | |
parent | 69883544bc9e2e7071f41359523a2b59bed4f88b (diff) | |
download | xmlgraphics-fop-bacbe7a0915fbb7b4c22b623f97a11352cf5d0b1.tar.gz xmlgraphics-fop-bacbe7a0915fbb7b4c22b623f97a11352cf5d0b1.zip |
Adds textdeko.fo file example. Applies Art Welch's JDK 1.1.x compatibility
fixes.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193739 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CompileXMLFiles.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/CompileXMLFiles.java b/lib/CompileXMLFiles.java index 714b228f4..531e7d36b 100644 --- a/lib/CompileXMLFiles.java +++ b/lib/CompileXMLFiles.java @@ -87,7 +87,7 @@ public class CompileXMLFiles extends Task private String configFile, outFile; private String [] filenameList; private String filenames; - private ArrayList files = new ArrayList(); + private Vector files = new Vector(); //sets name of configuration file, which must //be an xml file conforming to the book.dtd used by xml-site @@ -163,7 +163,7 @@ public class CompileXMLFiles extends Task { String line, filename; BufferedReader in; - Iterator iterator = files.iterator(); + Enumeration iterator = files.elements(); try { BufferedWriter out = new BufferedWriter (new FileWriter("compileXMLFiles-tmp.xml")); @@ -171,8 +171,8 @@ public class CompileXMLFiles extends Task "<!DOCTYPE documentation [\n" + "<!ENTITY nbsp \" \">\n" + "]>\n<documentation>"); - while (iterator.hasNext()) { - filename = (String) iterator.next(); + while (iterator.hasMoreElements()) { + filename = (String) iterator.nextElement(); in = new BufferedReader(new FileReader(filename)); while ((line = in.readLine()) != null) { //kill the lines pointing to the sbk protocol and the xml declaration @@ -196,7 +196,7 @@ public class CompileXMLFiles extends Task String id, label, source; if (name.equals("document") || name.equals("entry")) { source = atts.getValue("source"); - files.add(source); + files.addElement(source); } } public void endElement (String name) |