public interface SerializerFactory
Serializer
.
HtmlCleanerContentRewriter
requires an instance of this factory type
to create a physical HtmlCleaner Serializer
instance.
Modifier and Type | Method and Description |
---|---|
Serializer |
createSerializer(HtmlCleaner cleaner)
Creates a
Serializer instance for the given HtmlCleaner instance. |
Serializer createSerializer(HtmlCleaner cleaner) throws Exception
Serializer
instance for the given HtmlCleaner instance.
Note:
Implementations can read properties of the given HtmlCleaner instance
to set configurations of the newly created Serializer
instance
like DefaultSerializerFactory
does.
cleaner
- Exception
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.