|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An instance of a class implementing this interface collects all properties necessary to perform a conversion from a specific source format to a specific target format. One or more converter spec classes correspond to one converter class, and the contract for accessing the conversion parameters is up to the implementers of the converter spec classes.
A conversion spec instance can be reused for multiple conversions. Also,
implementations of this interface must provide a default constructor that
initializes all properties with suitable values, in order to allow default
conversions. As converter specs sometimes have to be transferred over
machine boundaries, this interface extends Serializable
.
The design allows various parties to come up with implementations for
various combinations of media formats.
Method Summary | |
MediaConverter (src) |
getConverter()
Returns an object implementing the MediaConverter (src) interface that
can be used to process conversions using the receiver. |
java.lang.String |
getTargetFileExtension()
Returns a file extension as a String that can be used as a default for media objects created using the receiver. |
java.lang.String |
getTargetMimeType()
Returns a MIME type as a String that can be used as a default for media objects created using the receiver. |
Method Detail |
public MediaConverter (src) getConverter() throws MediaException (src)
MediaConverter
(src) interface that
can be used to process conversions using the receiver. The instance
returned is initialized with the receiver to define the conversion
specific parameters.
MediaException (src)
- if the instantiation of the converter fails.public java.lang.String getTargetMimeType()
null
indicates that the receiver does not alter the media format of the
content offered on the given input stream.
public java.lang.String getTargetFileExtension()
null
indicates that the
receiver does not alter the media format of the content offered on the
given input stream.
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |