From bacbe7a0915fbb7b4c22b623f97a11352cf5d0b1 Mon Sep 17 00:00:00 2001 From: Steve Coffman Date: Thu, 26 Oct 2000 14:33:37 +0000 Subject: 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 --- lib/CompileXMLFiles.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') 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 "\n" + "]>\n"); - 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) -- cgit v1.2.3