Interface IDocumentTransformer
-
- All Superinterfaces:
IImporterHandler
- All Known Implementing Classes:
AbstractCharStreamTransformer,AbstractDocumentTransformer,AbstractStringTransformer,CharsetTransformer,DOMDeleteTransformer,DOMPreserveTransformer,ExternalTransformer,ImageTransformer,NoContentTransformer,ReduceConsecutivesTransformer,ReplaceTransformer,ScriptTransformer,StripAfterTransformer,StripBeforeTransformer,StripBetweenTransformer,SubstringTransformer
public interface IDocumentTransformer extends IImporterHandler
Transformers allow to manipulate and modify a document metadata or content.- Author:
- Pascal Essiembre
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidtransformDocument(HandlerDoc doc, InputStream input, OutputStream output, ParseState parseState)Transforms document content and metadata.
-
-
-
Method Detail
-
transformDocument
void transformDocument(HandlerDoc doc, InputStream input, OutputStream output, ParseState parseState) throws ImporterHandlerException
Transforms document content and metadata.- Parameters:
doc- documentinput- document content to transformoutput- transformed document contentparseState- whether the document has been parsed already or not (a parsed document should normally be text-based)- Throws:
ImporterHandlerException- could not transform the document
-
-