com.google.gdata.wireformats
Class XmlWireFormat
java.lang.Object
com.google.gdata.wireformats.WireFormat
com.google.gdata.wireformats.XmlWireFormat
public class XmlWireFormat
- extends WireFormat
JSON wire format properties.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlWireFormat
public XmlWireFormat()
createGenerator
public WireFormatGenerator createGenerator(OutputProperties outProps,
java.io.Writer w,
java.nio.charset.Charset cs,
boolean prettyPrint)
- Description copied from class:
WireFormat
- Create a wire format generator.
- Specified by:
createGenerator
in class WireFormat
- Parameters:
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 format
- Returns:
- wire format generator
createParser
public WireFormatParser createParser(InputProperties inProps,
java.io.Reader r,
java.nio.charset.Charset cs)
- Description copied from class:
WireFormat
- Create a wire format parser.
- Specified by:
createParser
in class WireFormat
- Parameters:
inProps
- the input properties to use when parsingr
- reader where input is retrieved fromcs
- character set used to encode output
- Returns:
- wire format parser
createParser
public WireFormatParser createParser(InputProperties inProps,
XmlEventSource source)
- Description copied from class:
WireFormat
- Create a wire format parser for a given xml event source. By default this
throws
UnsupportedOperationException
, subclasses can implement this
if they choose to.
- Overrides:
createParser
in class WireFormat