public class XmlWireFormat extends WireFormat
ALL, name, XML| Constructor and Description |
|---|
XmlWireFormat() |
| Modifier and Type | Method and Description |
|---|---|
WireFormatGenerator |
createGenerator(OutputProperties outProps,
java.io.Writer w,
java.nio.charset.Charset cs,
boolean prettyPrint)
Create a wire format generator.
|
WireFormatParser |
createParser(InputProperties inProps,
java.io.Reader r,
java.nio.charset.Charset cs)
Create a wire format parser.
|
WireFormatParser |
createParser(InputProperties inProps,
XmlEventSource source)
Create a wire format parser for a given xml event source.
|
getNamepublic WireFormatGenerator createGenerator(OutputProperties outProps, java.io.Writer w, java.nio.charset.Charset cs, boolean prettyPrint)
WireFormatcreateGenerator in class WireFormatoutProps - the output properties to use for outputw - writer where output is sent tocs - character set used to encode outputprettyPrint - true if output should be in prettyprint formatpublic WireFormatParser createParser(InputProperties inProps, java.io.Reader r, java.nio.charset.Charset cs)
WireFormatcreateParser in class WireFormatinProps - the input properties to use when parsingr - reader where input is retrieved fromcs - character set used to encode outputpublic WireFormatParser createParser(InputProperties inProps, XmlEventSource source)
WireFormatUnsupportedOperationException, subclasses can implement this
if they choose to.createParser in class WireFormat