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

java.lang.Object
  extended by com.google.gdata.wireformats.input.AbstractParser<MediaSource>
      extended by com.google.gdata.wireformats.input.media.MediaParser
All Implemented Interfaces:
InputParser<MediaSource>

public class MediaParser
extends AbstractParser<MediaSource>

The MediaParser class provides an InputParser implementation for consuming media data and exposing it as an MediaSource result.


Constructor Summary
MediaParser()
           
 
Method Summary
<R extends MediaSource>
R
parse(ParseSource parseSource, InputProperties inProps, 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
getAltFormat, getResultType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaParser

public MediaParser()
Method Detail

parse

public <R extends MediaSource> R parse(ParseSource parseSource,
                                       InputProperties inProps,
                                       java.lang.Class<R> resultClass)
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
inProps - properties describing the input data
resultClass - specific type of result expected from the parse