public class MediaMultipartParser extends AbstractParser<MediaMultipart>
InputParser
implementation that
is capable parsing GData media multipart data streams to produce a
MediaMultipart
instance.altFormat, resultType
Constructor and Description |
---|
MediaMultipartParser() |
Modifier and Type | Method and Description |
---|---|
protected MediaMultipart |
createMultipart(ParseSource parseSource,
InputProperties inputProperties)
Creates the MediaMultipart instance that does the actual parsing into
multipart body parts.
|
<R extends MediaMultipart> |
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.
|
createResult, createResult, getAltFormat, getResultType
protected MediaMultipart createMultipart(ParseSource parseSource, InputProperties inputProperties) throws javax.mail.MessagingException
parseSource
- source input streaminputProperties
- input propertiesjavax.mail.MessagingException
public <R extends MediaMultipart> R parse(ParseSource parseSource, InputProperties inputProperties, java.lang.Class<R> resultClass) throws ServiceException
InputParser
parseSource
- providing the source of the datainputProperties
- properties describing the input dataresultClass
- specific type of result expected from the parseServiceException