You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by di...@apache.org on 2006/06/02 21:24:42 UTC
svn commit: r411257 -
/webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/util/StAXUtils.java
Author: dims
Date: Fri Jun 2 12:24:42 2006
New Revision: 411257
URL: http://svn.apache.org/viewvc?rev=411257&view=rev
Log:
WSCOMMONS-39 - Request to log which XMLStreamReader is used
Modified:
webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/util/StAXUtils.java
Modified: webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/util/StAXUtils.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/util/StAXUtils.java?rev=411257&r1=411256&r2=411257&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/util/StAXUtils.java (original)
+++ webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/util/StAXUtils.java Fri Jun 2 12:24:42 2006
@@ -11,8 +11,13 @@
import java.io.Writer;
import java.util.Stack;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
public class StAXUtils {
+ private static Log log = LogFactory.getLog(StAXUtils.class);
+
/**
* Pool of XMLOutputFactory instances
*/
@@ -48,7 +53,9 @@
throws XMLStreamException {
XMLInputFactory inputFactory = getXMLInputFactory();
try {
- return inputFactory.createXMLStreamReader(in, encoding);
+ XMLStreamReader reader = inputFactory.createXMLStreamReader(in, encoding);
+ log.info("XMLStreamReader is " + reader.getClass().getName());
+ return reader;
} finally {
releaseXMLInputFactory(inputFactory);
}
@@ -58,7 +65,9 @@
throws XMLStreamException {
XMLInputFactory inputFactory = getXMLInputFactory();
try {
- return inputFactory.createXMLStreamReader(in);
+ XMLStreamReader reader = inputFactory.createXMLStreamReader(in);
+ log.info("XMLStreamReader is " + reader.getClass().getName());
+ return reader;
} finally {
releaseXMLInputFactory(inputFactory);
}
@@ -68,7 +77,9 @@
throws XMLStreamException {
XMLInputFactory inputFactory = getXMLInputFactory();
try {
- return inputFactory.createXMLStreamReader(in);
+ XMLStreamReader reader = inputFactory.createXMLStreamReader(in);
+ log.info("XMLStreamReader is " + reader.getClass().getName());
+ return reader;
} finally {
releaseXMLInputFactory(inputFactory);
}
@@ -99,7 +110,9 @@
throws XMLStreamException {
XMLOutputFactory outputFactory = getXMLOutputFactory();
try {
- return outputFactory.createXMLStreamWriter(out);
+ XMLStreamWriter writer = outputFactory.createXMLStreamWriter(out);
+ log.info("XMLStreamWriter is " + writer.getClass().getName());
+ return writer;
} finally {
releaseXMLOutputFactory(outputFactory);
}
@@ -109,7 +122,9 @@
throws XMLStreamException {
XMLOutputFactory outputFactory = getXMLOutputFactory();
try {
- return outputFactory.createXMLStreamWriter(out);
+ XMLStreamWriter writer = outputFactory.createXMLStreamWriter(out);
+ log.info("XMLStreamWriter is " + writer.getClass().getName());
+ return writer;
} finally {
releaseXMLOutputFactory(outputFactory);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org