FileDocCategorySizeDatePackage
GDataSerializer.javaAPI DocAndroid 1.5 API1701Wed May 06 22:41:16 BST 2009com.google.wireless.gdata.serializer

GDataSerializer

public interface GDataSerializer
Interface for serializing GData entries.

Fields Summary
public static final int
FORMAT_FULL
Serialize all data in the entry. Used for debugging.
public static final int
FORMAT_CREATE
Serialize only the data necessary for creating a new entry.
public static final int
FORMAT_UPDATE
Serialize only the data necessary for updating an existing entry.
Constructors Summary
Methods Summary
public java.lang.StringgetContentType()
Returns the Content-Type for this serialization format.

return
The Content-Type for this serialization format.

public voidserialize(java.io.OutputStream out, int format)
Serializes a GData entry to the provided {@link OutputStream}, using the specified serialization format.

see
#FORMAT_FULL
see
#FORMAT_CREATE
see
#FORMAT_UPDATE
param
out The {@link OutputStream} to which the entry should be serialized.
param
format The format of the serialized output.
throws
IOException Thrown if there is an issue writing the serialized entry to the provided {@link OutputStream}.
throws
ParseException Thrown if the entry cannot be serialized.