Methods Summary |
---|
public void | close()Closes this GDataClient, cleaning up any resources, persistent connections, etc.,
it may have.
|
public java.io.InputStream | createEntry(java.lang.String feedUrl, java.lang.String authToken, com.google.wireless.gdata.serializer.GDataSerializer entry)Connects to a GData server (specified by the feedUrl) and creates a new
entry. The response from the server is returned as an
{@link InputStream}. The caller is responsible for calling
{@link InputStream#close()} on the returned {@link InputStream}.
|
public QueryParams | createQueryParams()Creates a new QueryParams that should be used to restrict the feed
contents that are fetched.
|
public void | deleteEntry(java.lang.String editUri, java.lang.String authToken)Connects to a GData server (specified by the editUri) and deletes an
existing entry.
|
public java.lang.String | encodeUri(java.lang.String uri)URI encodes the supplied uri (using UTF-8).
|
public java.io.InputStream | getFeedAsStream(java.lang.String feedUrl, java.lang.String authToken)Connects to a GData server (specified by the feedUrl) and fetches the
specified feed as an InputStream. The caller is responsible for calling
{@link InputStream#close()} on the returned {@link InputStream}.
|
public java.io.InputStream | getMediaEntryAsStream(java.lang.String mediaEntryUrl, java.lang.String authToken)Connects to a GData server (specified by the mediaEntryUrl) and fetches the
specified media entry as an InputStream. The caller is responsible for calling
{@link InputStream#close()} on the returned {@link InputStream}.
|
public java.io.InputStream | updateEntry(java.lang.String editUri, java.lang.String authToken, com.google.wireless.gdata.serializer.GDataSerializer entry)Connects to a GData server (specified by the editUri) and updates an
existing entry. The response from the server is returned as an
{@link InputStream}. The caller is responsible for calling
{@link InputStream#close()} on the returned {@link InputStream}.
|
public java.io.InputStream | updateMediaEntry(java.lang.String editUri, java.lang.String authToken, java.io.InputStream mediaEntryInputStream, java.lang.String contentType)Connects to a GData server (specified by the editUri) and updates an
existing media entry. The response from the server is returned as an
{@link InputStream}. The caller is responsible for calling
{@link InputStream#close()} on the returned {@link InputStream}.
|