aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-04-14 22:57:10 +0000
committerGlen Mazza <gmazza@apache.org>2004-04-14 22:57:10 +0000
commit840a4f65f98c5674edd7275c48ac8844ce409a87 (patch)
tree8b3afc97dede1dd7df6106842665eebfe37e45c5 /examples
parent01220902da2645269cacd9bb7fb6092d0c6dc461 (diff)
downloadxmlgraphics-fop-840a4f65f98c5674edd7275c48ac8844ce409a87.tar.gz
xmlgraphics-fop-840a4f65f98c5674edd7275c48ac8844ce409a87.zip
Used standard Java exception-printing method "printStackTrace(PrintStream)"
instead of Avalon equivalent. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197498 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'examples')
-rw-r--r--examples/embedding/java/embedding/ExampleDOM2PDF.java6
-rw-r--r--examples/embedding/java/embedding/ExampleFO2PDF.java5
-rw-r--r--examples/embedding/java/embedding/ExampleObj2PDF.java5
-rw-r--r--examples/embedding/java/embedding/ExampleObj2XML.java5
-rw-r--r--examples/embedding/java/embedding/ExampleSVG2PDF.java5
-rw-r--r--examples/embedding/java/embedding/ExampleXML2FO.java5
-rw-r--r--examples/embedding/java/embedding/ExampleXML2PDF.java5
7 files changed, 8 insertions, 28 deletions
diff --git a/examples/embedding/java/embedding/ExampleDOM2PDF.java b/examples/embedding/java/embedding/ExampleDOM2PDF.java
index 0f10157a5..ab02e6607 100644
--- a/examples/embedding/java/embedding/ExampleDOM2PDF.java
+++ b/examples/embedding/java/embedding/ExampleDOM2PDF.java
@@ -33,9 +33,6 @@ import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.Text;
-//Avalon
-import org.apache.avalon.framework.ExceptionUtil;
-
// Commons-Logging
import org.apache.commons.logging.impl.SimpleLog;
@@ -141,8 +138,9 @@ public class ExampleDOM2PDF {
app.convertDOM2PDF(foDoc, pdffile);
System.out.println("Success!");
+
} catch (Exception e) {
- System.err.println(ExceptionUtil.printStackTrace(e));
+ e.printStackTrace(System.err);
System.exit(-1);
}
}
diff --git a/examples/embedding/java/embedding/ExampleFO2PDF.java b/examples/embedding/java/embedding/ExampleFO2PDF.java
index 350c507f4..be8cd7822 100644
--- a/examples/embedding/java/embedding/ExampleFO2PDF.java
+++ b/examples/embedding/java/embedding/ExampleFO2PDF.java
@@ -27,9 +27,6 @@ import java.io.OutputStream;
//SAX
import org.xml.sax.InputSource;
-//Avalon
-import org.apache.avalon.framework.ExceptionUtil;
-
// Commons-Logging
import org.apache.commons.logging.impl.SimpleLog;
@@ -113,7 +110,7 @@ public class ExampleFO2PDF {
System.out.println("Success!");
} catch (Exception e) {
- System.err.println(ExceptionUtil.printStackTrace(e));
+ e.printStackTrace(System.err);
System.exit(-1);
}
}
diff --git a/examples/embedding/java/embedding/ExampleObj2PDF.java b/examples/embedding/java/embedding/ExampleObj2PDF.java
index 9f82334bb..313faee43 100644
--- a/examples/embedding/java/embedding/ExampleObj2PDF.java
+++ b/examples/embedding/java/embedding/ExampleObj2PDF.java
@@ -32,9 +32,6 @@ import javax.xml.transform.Result;
import javax.xml.transform.stream.StreamSource;
import javax.xml.transform.sax.SAXResult;
-//Avalon
-import org.apache.avalon.framework.ExceptionUtil;
-
// Commons-Logging
import org.apache.commons.logging.impl.SimpleLog;
@@ -127,7 +124,7 @@ public class ExampleObj2PDF {
System.out.println("Success!");
} catch (Exception e) {
- System.err.println(ExceptionUtil.printStackTrace(e));
+ e.printStackTrace(System.err);
System.exit(-1);
}
}
diff --git a/examples/embedding/java/embedding/ExampleObj2XML.java b/examples/embedding/java/embedding/ExampleObj2XML.java
index b71c98d30..ce749290d 100644
--- a/examples/embedding/java/embedding/ExampleObj2XML.java
+++ b/examples/embedding/java/embedding/ExampleObj2XML.java
@@ -30,9 +30,6 @@ import javax.xml.transform.Source;
import javax.xml.transform.Result;
import javax.xml.transform.stream.StreamResult;
-//Avalon
-import org.apache.avalon.framework.ExceptionUtil;
-
import embedding.model.ProjectMember;
import embedding.model.ProjectTeam;
@@ -118,7 +115,7 @@ public class ExampleObj2XML {
System.out.println("Success!");
} catch (Exception e) {
- System.err.println(ExceptionUtil.printStackTrace(e));
+ e.printStackTrace(System.err);
System.exit(-1);
}
}
diff --git a/examples/embedding/java/embedding/ExampleSVG2PDF.java b/examples/embedding/java/embedding/ExampleSVG2PDF.java
index 76b166295..d9944c93c 100644
--- a/examples/embedding/java/embedding/ExampleSVG2PDF.java
+++ b/examples/embedding/java/embedding/ExampleSVG2PDF.java
@@ -24,9 +24,6 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
-//Avalon
-import org.apache.avalon.framework.ExceptionUtil;
-
//Batik
import org.apache.batik.transcoder.Transcoder;
import org.apache.batik.transcoder.TranscoderException;
@@ -104,7 +101,7 @@ public class ExampleSVG2PDF {
System.out.println("Success!");
} catch (Exception e) {
- System.err.println(ExceptionUtil.printStackTrace(e));
+ e.printStackTrace(System.err);
System.exit(-1);
}
}
diff --git a/examples/embedding/java/embedding/ExampleXML2FO.java b/examples/embedding/java/embedding/ExampleXML2FO.java
index 2b8c2a422..82341c0b4 100644
--- a/examples/embedding/java/embedding/ExampleXML2FO.java
+++ b/examples/embedding/java/embedding/ExampleXML2FO.java
@@ -32,9 +32,6 @@ import javax.xml.transform.Result;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
-//Avalon
-import org.apache.avalon.framework.ExceptionUtil;
-
/**
* This class demonstrates the conversion of an XML file to an XSL-FO file
* using JAXP (XSLT).
@@ -103,7 +100,7 @@ public class ExampleXML2FO {
System.out.println("Success!");
} catch (Exception e) {
- System.err.println(ExceptionUtil.printStackTrace(e));
+ e.printStackTrace(System.err);
System.exit(-1);
}
}
diff --git a/examples/embedding/java/embedding/ExampleXML2PDF.java b/examples/embedding/java/embedding/ExampleXML2PDF.java
index 90b9511fa..60cdd12ef 100644
--- a/examples/embedding/java/embedding/ExampleXML2PDF.java
+++ b/examples/embedding/java/embedding/ExampleXML2PDF.java
@@ -32,9 +32,6 @@ import javax.xml.transform.Result;
import javax.xml.transform.stream.StreamSource;
import javax.xml.transform.sax.SAXResult;
-//Avalon
-import org.apache.avalon.framework.ExceptionUtil;
-
// Commons-Logging
import org.apache.commons.logging.impl.SimpleLog;
@@ -112,7 +109,7 @@ public class ExampleXML2PDF {
System.out.println("Success!");
} catch (Exception e) {
- System.err.println(ExceptionUtil.printStackTrace(e));
+ e.printStackTrace(System.err);
System.exit(-1);
}
}