|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides a way to transcode an input stream or a document.
Method Summary | |
void |
addTranscodingHint(TranscodingHints.Key key,
java.lang.Object value)
Sets the value of a single preference for the transcoding algorithms. |
java.lang.String |
getMimeType()
Returns the mime type of the ouput format of this transcoder. |
TranscodingHints |
getTranscodingHints()
Returns the transcoding hints of this transcoder. |
void |
setTranscodingHints(java.util.Map hints)
Replaces the values of all preferences for the transcoding algorithms with the specified hints. |
void |
transcodeToStream(Document document,
java.io.OutputStream ostream)
Transcodes the specified document and write the result to the specified output. |
void |
transcodeToStream(InputSource isource,
java.io.OutputStream ostream)
Transcodes the specified input and write the result to the specified output. |
Method Detail |
public void transcodeToStream(InputSource isource, java.io.OutputStream ostream) throws TranscoderException
isource
- the input to transcodeostream
- the ouput stream where to write the transcoded inputTranscoderException
- if an error occured while transcodingpublic void transcodeToStream(Document document, java.io.OutputStream ostream) throws TranscoderException
document
- the document to transcodeostream
- the ouput stream where to write the transcoded inputTranscoderException
- if an error occured while transcodingpublic TranscodingHints getTranscodingHints()
public void addTranscodingHint(TranscodingHints.Key key, java.lang.Object value)
key
- the key of the hint to be setvalue
- the value indicating preferences for the specified
hint category.public void setTranscodingHints(java.util.Map hints)
hints
- the rendering hints to be setpublic java.lang.String getMimeType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |