public class MediaGenerator extends Object implements OutputGenerator<MediaSource>
OutputGenerator interface
for generating media data for a service that supports media content. Support
for media multipart documents is provided by the
MediaMultipartGenerator class.| Constructor and Description |
|---|
MediaGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate(OutputStream contentStream,
OutputProperties request,
MediaSource source)
Generates output for requests that target media resources.
|
AltFormat |
getAltFormat()
Returns the alternate representation format produced the generator.
|
Class<MediaSource> |
getSourceType()
Returns the
Class that represents the expected source data type for
output generation. |
public AltFormat getAltFormat()
OutputGeneratorgetAltFormat in interface OutputGenerator<MediaSource>public Class<MediaSource> getSourceType()
OutputGeneratorClass that represents the expected source data type for
output generation.getSourceType in interface OutputGenerator<MediaSource>public void generate(OutputStream contentStream, OutputProperties request, MediaSource source) throws IOException
generate in interface OutputGenerator<MediaSource>contentStream - the target stream for content generation.request - output properties for the generated outputsource - source object for output generationIOExceptionCopyright © 2012. All Rights Reserved.