com.google.gdata.wireformats
Class XmlWireFormat

java.lang.Object
  extended by com.google.gdata.wireformats.WireFormat
      extended by com.google.gdata.wireformats.XmlWireFormat

public class XmlWireFormat
extends WireFormat

JSON wire format properties.


Field Summary
 
Fields inherited from class com.google.gdata.wireformats.WireFormat
ALL, XML
 
Constructor Summary
XmlWireFormat()
           
 
Method Summary
 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.
 
Methods inherited from class com.google.gdata.wireformats.WireFormat
getName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlWireFormat

public XmlWireFormat()
Method Detail

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 output
w - writer where output is sent to
cs - character set used to encode output
prettyPrint - 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 parsing
r - reader where input is retrieved from
cs - 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