public static class DocumentPartTransformer.DefaultImpl extends java.lang.Object implements DocumentPartTransformer
DocumentPartTransformer.DefaultImpl, DocumentPartTransformer.DocumentPartTransformerException, DocumentPartTransformer.Format, DocumentPartTransformer.TransformationException, DocumentPartTransformer.TransformationTimeoutException, DocumentPartTransformer.TransformKind, DocumentPartTransformer.UnsupportedFormatException, DocumentPartTransformer.UnsupportedInputFormatException, DocumentPartTransformer.UnsupportedOutputFormatException
Constructor and Description |
---|
DefaultImpl() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getSupporterOutputMime(DocumentPartTransformer.TransformKind kind)
Get the list of supported MIME output formats per transformation kind.
|
void |
transform(DocumentPart part,
ProcessableDocument input,
ProcessableDocument output,
DocumentPartTransformer.Format format)
Transform a part 'part' using the format 'format' into a destination
document.
|
public void transform(DocumentPart part, ProcessableDocument input, ProcessableDocument output, DocumentPartTransformer.Format format) throws DocumentPartTransformer.TransformationException, DocumentPartTransformer.UnsupportedInputFormatException, DocumentPartTransformer.UnsupportedOutputFormatException, java.lang.NoSuchMethodException
DocumentPartTransformer
transform
in interface DocumentPartTransformer
part
- the input part.input
- the source document (part is probably in this document)output
- the target document (parts are stored inside this document)format
- the transformation formatDocumentPartTransformer.TransformationException
- upon error (in this case, the upstream client may choose to
give up on the input, or select another filter) Note: input
and output may be the same objectsDocumentPartTransformer.UnsupportedInputFormatException
- if the input format is not supported by the filter (in this
case, the upstream client will give up with the current
filter)DocumentPartTransformer.UnsupportedOutputFormatException
- if the output format is not supported by the filter (in this
case, the upstream client may retry with a different format,
using the same transformer)java.lang.NoSuchMethodException
- if the method is not supportedpublic java.util.List<java.lang.String> getSupporterOutputMime(DocumentPartTransformer.TransformKind kind)
DocumentPartTransformer
getSupporterOutputMime
in interface DocumentPartTransformer
kind
- the kind of transformation: Note: the returned array may
include Format.MIME_GENERIC to advertise a filter producing
any type of document or an unknown subset of document types.Copyright © 2013 Dassault Systèmes, All Rights Reserved.