|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.wireformats.WireFormat
public abstract class WireFormat
Top-level information about a wire format. All wire formats have an associated generator and parser, plus a method to validate content model metadata to ensure it's compatible with the wire format.
Field Summary | |
---|---|
static java.util.List<WireFormat> |
ALL
List of all supported wire formats. |
static XmlWireFormat |
XML
XML wire format. |
Method Summary | |
---|---|
abstract WireFormatGenerator |
createGenerator(OutputProperties outProps,
java.io.Writer w,
java.nio.charset.Charset cs,
boolean prettyPrint)
Create a wire format generator. |
abstract 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. |
java.lang.String |
getName()
Returns the wire format name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final XmlWireFormat XML
public static final java.util.List<WireFormat> ALL
Method Detail |
---|
public java.lang.String getName()
public abstract WireFormatGenerator createGenerator(OutputProperties outProps, java.io.Writer w, java.nio.charset.Charset cs, boolean prettyPrint)
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
public abstract WireFormatParser createParser(InputProperties inProps, java.io.Reader r, java.nio.charset.Charset cs)
inProps
- the input properties to use when parsingr
- reader where input is retrieved fromcs
- character set used to encode output
public WireFormatParser createParser(InputProperties inProps, XmlEventSource source)
UnsupportedOperationException
, subclasses can implement this
if they choose to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |