com.sun.xml.ws.commons.xmlutil
Class Converter
java.lang.Object
com.sun.xml.ws.commons.xmlutil.Converter
public final class Converter
- extends Object
Utility class that provides conversion of different XML representations
from/to various other formats
- Author:
- Marek Potociar
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UTF_8
public static final String UTF_8
- See Also:
- Constant Field Values
toString
public static String toString(Throwable throwable)
- Converts a throwable to String
- Parameters:
throwable -
- Returns:
- String representation of throwable
toString
public static String toString(Packet packet)
toStringNoIndent
public static String toStringNoIndent(Packet packet)
toString
public static String toString(Message message)
toStringNoIndent
public static String toStringNoIndent(Message message)
toBytes
public static byte[] toBytes(Message message,
String encoding)
throws XMLStreamException
- 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
public static String messageDataToString(byte[] data,
String encoding)
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.