File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
modules/jaxws/src/org/apache/axis2/jaxws/message/util Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 2323import org .apache .axiom .om .OMNode ;
2424import org .apache .axiom .om .OMXMLBuilderFactory ;
2525import org .apache .axiom .om .OMXMLParserWrapper ;
26- import org .apache .axiom .om .util .StAXUtils ;
2726import org .apache .axis2 .jaxws .utility .JavaUtils ;
2827import org .apache .commons .logging .Log ;
2928import org .apache .commons .logging .LogFactory ;
3029
3130import javax .xml .stream .XMLStreamException ;
3231import javax .xml .stream .XMLStreamReader ;
3332import javax .xml .stream .XMLStreamWriter ;
34- import java .io .StringWriter ;
3533import java .util .Iterator ;
3634
3735/**
@@ -87,23 +85,4 @@ public void outputTo(XMLStreamWriter writer) throws XMLStreamException {
8785 reader .close ();
8886 }
8987 }
90-
91- /**
92- * Utility method to write the reader contents to a String
93- * @return String
94- */
95- public String getAsString () throws XMLStreamException {
96- StringWriter sw = new StringWriter ();
97- XMLStreamWriter writer = StAXUtils .createXMLStreamWriter (sw );
98-
99- // Write the reader to the writer
100- outputTo (writer );
101-
102- // Flush the writer and get the String
103- writer .flush ();
104- sw .flush ();
105- String str = sw .toString ();
106- writer .close ();
107- return str ;
108- }
10988}
You can’t perform that action at this time.
0 commit comments