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.
|
getName
public WireFormatGenerator createGenerator(OutputProperties outProps, java.io.Writer w, java.nio.charset.Charset cs, boolean prettyPrint)
WireFormat
createGenerator
in class WireFormat
outProps
- 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)
WireFormat
createParser
in class WireFormat
inProps
- 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)
WireFormat
UnsupportedOperationException
, subclasses can implement this
if they choose to.createParser
in class WireFormat