com.google.gdata.wireformats.input.media
Class MediaMultipartParser
java.lang.Object
com.google.gdata.wireformats.input.AbstractParser<MediaMultipart>
com.google.gdata.wireformats.input.media.MediaMultipartParser
- All Implemented Interfaces:
- InputParser<MediaMultipart>
public class MediaMultipartParser
- extends AbstractParser<MediaMultipart>
The MediaMultipartParser is an
InputParser
implementation that
is capable parsing GData media multipart data streams to produce a
MediaMultipart
instance.
Method Summary |
protected MediaMultipart |
createMultipart(ParseSource parseSource,
InputProperties inputProperties)
Creates the MediaMultipart instance that does the actual parsing into
multipart body parts. |
|
parse(ParseSource parseSource,
InputProperties inputProperties,
java.lang.Class<R> resultClass)
Parses data in the supported representation format from the input stream
based upon the provided input properties into the provided target object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MediaMultipartParser
public MediaMultipartParser()
createMultipart
protected MediaMultipart createMultipart(ParseSource parseSource,
InputProperties inputProperties)
throws javax.mail.MessagingException
- Creates the MediaMultipart instance that does the actual parsing into
multipart body parts.
- Parameters:
parseSource
- source input streaminputProperties
- input properties
- Returns:
- resulting media multipart
- Throws:
javax.mail.MessagingException
parse
public <R extends MediaMultipart> R parse(ParseSource parseSource,
InputProperties inputProperties,
java.lang.Class<R> resultClass)
throws ServiceException
- Description copied from interface:
InputParser
- Parses data in the supported representation format from the input stream
based upon the provided input properties into the provided target object.
- Parameters:
parseSource
- providing the source of the datainputProperties
- properties describing the input dataresultClass
- specific type of result expected from the parse
- Throws:
ServiceException