aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSteve Coffman <gears@apache.org>2000-10-26 14:33:37 +0000
committerSteve Coffman <gears@apache.org>2000-10-26 14:33:37 +0000
commitbacbe7a0915fbb7b4c22b623f97a11352cf5d0b1 (patch)
tree53f8bc745c9f0060633b436a49250165e411af50 /lib
parent69883544bc9e2e7071f41359523a2b59bed4f88b (diff)
downloadxmlgraphics-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.java10
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)