From 6a0bd01081d3933462b1e75747bc0ae2397b5c84 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Wed, 19 Dec 2007 18:14:21 +0000 Subject: [PATCH] javadoc --- .../org/springframework/xml/transform/StaxResult.java | 7 ++++--- .../org/springframework/xml/transform/StaxSource.java | 11 ++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/xml/src/main/java/org/springframework/xml/transform/StaxResult.java b/xml/src/main/java/org/springframework/xml/transform/StaxResult.java index 0b91eff1..bc9140a1 100644 --- a/xml/src/main/java/org/springframework/xml/transform/StaxResult.java +++ b/xml/src/main/java/org/springframework/xml/transform/StaxResult.java @@ -21,17 +21,18 @@ import javax.xml.stream.XMLEventWriter; import javax.xml.stream.XMLStreamWriter; import javax.xml.transform.sax.SAXResult; +import org.xml.sax.ContentHandler; + import org.springframework.xml.stream.StaxEventContentHandler; import org.springframework.xml.stream.StaxStreamContentHandler; -import org.xml.sax.ContentHandler; /** * Implementation of the Result tagging interface for StAX writers. Can be constructed with a * XMLEventConsumer or a XMLStreamWriter. *

* This class is necessary because there is no implementation of Source for StaxReaders in JAXP 1.3. There - * will be a StaxResult in JAXP 1.4 (JDK 1.6), and by the time that version is available, this class will - * probably be deprecated. + * is a StAXResult in JAXP 1.4 (JDK 1.6), but this class is kept around for back-ward compatibility + * reasons. *

* Even though StaxResult extends from SAXResult, calling the methods of * SAXResult is not supported. In general, the only supported operation on this class is diff --git a/xml/src/main/java/org/springframework/xml/transform/StaxSource.java b/xml/src/main/java/org/springframework/xml/transform/StaxSource.java index 2c33f2ba..00c76d65 100644 --- a/xml/src/main/java/org/springframework/xml/transform/StaxSource.java +++ b/xml/src/main/java/org/springframework/xml/transform/StaxSource.java @@ -20,18 +20,19 @@ import javax.xml.stream.XMLEventReader; import javax.xml.stream.XMLStreamReader; import javax.xml.transform.sax.SAXSource; -import org.springframework.xml.stream.StaxEventXmlReader; -import org.springframework.xml.stream.StaxStreamXmlReader; import org.xml.sax.InputSource; import org.xml.sax.XMLReader; +import org.springframework.xml.stream.StaxEventXmlReader; +import org.springframework.xml.stream.StaxStreamXmlReader; + /** * Implementation of the Source tagging interface for StAX readers. Can be constructed with a * XMLEventReader or a XMLStreamReader. *

- * This class is necessary because there is no implementation of Source for StaxReaders in JAXP 1.3. There - * will be a StaxSource in JAXP 1.4 (JDK 1.6), and by the time that version is available, this class will - * probably be deprecated. + * This class is necessary because there is no implementation of Source for StAX Readers in JAXP 1.3. There + * is a StAXSource in JAXP 1.4 (JDK 1.6), but this class is kept around for back-ward compatibility + * reasons. *

* Even though StaxSource extends from SAXSource, calling the methods of * SAXSource is not supported. In general, the only supported operation on this class is