com.google.gdata.wireformats.output
Interface OutputGenerator<S>

Type Parameters:
S - source data type that will be used as the input to the generator
All Known Implementing Classes:
AtomDualGenerator, AtomGenerator, AtomServiceDualGenerator, AtomServiceGenerator, CharacterGenerator, DualModeGenerator, ElementGenerator, MediaGenerator, MediaMultipartGenerator, OpenSearchGenerator, RssDualGenerator, RssGenerator, WireFormatOutputGenerator, XmlGenerator

public interface OutputGenerator<S>

Interface for generating GData output.


Method Summary
 void generate(java.io.OutputStream contentStream, OutputProperties outProps, S source)
          Generates content to the output stream based upon the provided request/response.
 AltFormat getAltFormat()
          Returns the alternate representation format produced the generator.
 java.lang.Class<S> getSourceType()
          Returns the Class that represents the expected source data type for output generation.
 

Method Detail

getAltFormat

AltFormat getAltFormat()
Returns the alternate representation format produced the generator.


getSourceType

java.lang.Class<S> getSourceType()
Returns the Class that represents the expected source data type for output generation.


generate

void generate(java.io.OutputStream contentStream,
              OutputProperties outProps,
              S source)
              throws java.io.IOException
Generates content to the output stream based upon the provided request/response.

Parameters:
contentStream - the target stream for content generation.
outProps - output properties for the generated output
source - source object for output generation
Throws:
java.io.IOException