java.lang.Object
com.sun.xml.ws.commons.xmlutil.Converter
Utility class that provides conversion of different XML representations
from/to various other formats
- Author:
- Marek Potociar
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
messageDataToString
(byte[] data, String encoding) static byte[]
static Message
toMessage
(InputStream dataStream, String encoding) Converts JAX-WS RI message represented as input stream back to Message object.static String
static String
static String
Converts a throwable to Stringstatic String
toStringNoIndent
(Message message) static String
toStringNoIndent
(Packet packet)
-
Field Details
-
UTF_8
- See Also:
-
-
Method Details
-
toString
Converts a throwable to String- Returns:
- String representation of throwable
-
toString
-
toStringNoIndent
-
toString
-
toStringNoIndent
-
toBytes
- Throws:
XMLStreamException
-
toMessage
public static Message toMessage(@NotNull InputStream dataStream, String encoding) throws XMLStreamException Converts JAX-WS RI message represented as input stream back to Message object.- Parameters:
dataStream
- message data streamencoding
- message data stream encoding- Returns:
Message
object created from the data stream- Throws:
XMLStreamException
-
messageDataToString
-