com.google.gdata.wireformats.input.media
Class MediaMultipartParser

java.lang.Object
  extended by com.google.gdata.wireformats.input.AbstractParser<MediaMultipart>
      extended by 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.


Field Summary
 
Fields inherited from class com.google.gdata.wireformats.input.AbstractParser
altFormat, resultType
 
Constructor Summary
MediaMultipartParser()
           
 
Method Summary
protected  MediaMultipart createMultipart(ParseSource parseSource, InputProperties inputProperties)
          Creates the MediaMultipart instance that does the actual parsing into multipart body parts.
<R extends MediaMultipart>
R
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 com.google.gdata.wireformats.input.AbstractParser
createResult, createResult, getAltFormat, getResultType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaMultipartParser

public MediaMultipartParser()
Method Detail

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 stream
inputProperties - 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 data
inputProperties - properties describing the input data
resultClass - specific type of result expected from the parse
Throws:
ServiceException