FileDocCategorySizeDatePackage
GDataParserFactory.javaAPI DocAndroid 1.5 API1826Wed May 06 22:41:16 BST 2009com.google.wireless.gdata.client

GDataParserFactory

public interface GDataParserFactory
Factory that creates {@link GDataParser}s and {@link GDataSerializer}s.

Fields Summary
Constructors Summary
Methods Summary
public com.google.wireless.gdata.parser.GDataParsercreateParser(java.lang.Class entryClass, java.io.InputStream is)
Creates a new {@link GDataParser} for the provided InputStream.

param
entryClass Specify the class of Entry objects that are to be parsed. This lets createParser know which parser to create.
param
is The InputStream that should be parsed. @return The GDataParser that will parse is.
throws
ParseException Thrown if the GDataParser could not be created.
throws
IllegalArgumentException if the feed type is unknown.

public com.google.wireless.gdata.parser.GDataParsercreateParser(java.io.InputStream is)
Creates a new {@link GDataParser} for the provided InputStream, using the default feed type for the client.

param
is The InputStream that should be parsed.
return
The GDataParser that will parse is.
throws
ParseException Thrown if the GDataParser could not be created. Note that this can occur if the feed in the InputStream is not of the default type assumed by this method.
see
#createParser(Class,InputStream)

public com.google.wireless.gdata.serializer.GDataSerializercreateSerializer(com.google.wireless.gdata.data.Entry entry)
Creates a new {@link GDataSerializer} for the provided Entry.

param
entry The Entry that should be serialized.
return
The GDataSerializer that will serialize entry.