com.google.gdata.wireformats.output.media
Class MediaMultipartGenerator

java.lang.Object
  extended by com.google.gdata.wireformats.output.media.MediaMultipartGenerator
All Implemented Interfaces:
OutputGenerator<MediaMultipart>

public class MediaMultipartGenerator
extends java.lang.Object
implements OutputGenerator<MediaMultipart>

The MediaMultipartGenerator class handles output generation for MIME multipart related documents containing Atom and media content as separate parts. Support for media-only output generation is provided by the MediaGenerator class.


Constructor Summary
MediaMultipartGenerator()
           
 
Method Summary
 void generate(java.io.OutputStream contentStream, OutputProperties request, MediaMultipart source)
          Generates output for requests that target media resources.
 AltFormat getAltFormat()
          Returns the alternate representation format produced the generator.
 java.lang.Class<MediaMultipart> getSourceType()
          Returns the Class that represents the expected source data type for output generation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaMultipartGenerator

public MediaMultipartGenerator()
Method Detail

getAltFormat

public AltFormat getAltFormat()
Description copied from interface: OutputGenerator
Returns the alternate representation format produced the generator.

Specified by:
getAltFormat in interface OutputGenerator<MediaMultipart>

getSourceType

public java.lang.Class<MediaMultipart> getSourceType()
Description copied from interface: OutputGenerator
Returns the Class that represents the expected source data type for output generation.

Specified by:
getSourceType in interface OutputGenerator<MediaMultipart>

generate

public void generate(java.io.OutputStream contentStream,
                     OutputProperties request,
                     MediaMultipart source)
              throws java.io.IOException
Generates output for requests that target media resources.

Specified by:
generate in interface OutputGenerator<MediaMultipart>
Parameters:
contentStream - the target stream for content generation.
request - output properties for the generated output
source - source object for output generation
Throws:
java.io.IOException