| java.lang.Object | |
| ↳ | com.google.gdata.data.media.GDataContentHandler |
The GDataContentHandler class implements the DataContentHandler interface of the JavaBeans Activation Framework to enable the parsing and generation of Atom feed and entry XML from MIME media data. This data content handler is capable of generating MIME media output in Atom, RSS, and JSON formats, as well as parsing content in Atom format.
The implementation includes support for customized types driven by GData Kinds, where the type of object returned might be triggered by the GData kind category tags included within the content.
The current implementation does not include DataFlavor transfer support, only mapping from raw MIME data content to object model (and vice versa).
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DEFAULT_INPUT_PROPERTIES | Defines the default InputProperties that are used for content
parsing. |
||||||||||
| DEFAULT_OUTPUT_PROPERTIES | Defines the default OutputProperties that are used for content
parsing. |
||||||||||
| threadInputProperties | Thread local storage that defines the input properties that should be used when parsing GData content | ||||||||||
| threadOutputProperties | Thread local storage that defines the output properties that should be used when generating GData content | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the input properties for the current java.lang.Thread.
| |||||||||||
Returns the output properties for the current java.lang.Thread.
| |||||||||||
Sets the input properties for the current java.lang.Thread and
returns any existing input properties that have been set (so they can be
restored later).
| |||||||||||
Sets the output properties for the current java.lang.Thread and
returns any existing input properties that have been set (so they can be
restored later).
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
javax.activation.DataContentHandler
| |||||||||||
Defines the default InputProperties that are used for content
parsing. These properties will use the default media registry, expect
Atom content, produces generic Entry instances, and use an
empty extension profile.
Defines the default OutputProperties that are used for content
parsing. These properties will use a default media registry and an
empty extension profile.
Thread local storage that defines the input properties that should be used when parsing GData content
Thread local storage that defines the output properties that should be used when generating GData content
| ds |
|---|
| IOException |
|---|
Returns the input properties for the current java.lang.Thread.
Returns the output properties for the current java.lang.Thread.
| df | |
|---|---|
| ds |
Sets the input properties for the current java.lang.Thread and returns any existing input properties that have been set (so they can be restored later).
| inputProperties |
|---|
Sets the output properties for the current java.lang.Thread and returns any existing input properties that have been set (so they can be restored later).
| outputProperties |
|---|
| obj | |
|---|---|
| mimeType | |
| os |
| IOException |
|---|