Package org.apache.tika.example
Class PickBestTextEncodingParser.CharsetContentHandlerFactory
java.lang.Object
org.apache.tika.example.PickBestTextEncodingParser.CharsetContentHandlerFactory
- All Implemented Interfaces:
Serializable
,ContentHandlerFactory
- Enclosing class:
- PickBestTextEncodingParser
protected class PickBestTextEncodingParser.CharsetContentHandlerFactory
extends Object
implements ContentHandlerFactory
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNewContentHandler
(OutputStream os, String encoding) getNewContentHandler
(OutputStream os, Charset charset)
-
Constructor Details
-
CharsetContentHandlerFactory
protected CharsetContentHandlerFactory()
-
-
Method Details
-
getNewContentHandler
- Specified by:
getNewContentHandler
in interfaceContentHandlerFactory
-
getNewContentHandler
public ContentHandler getNewContentHandler(OutputStream os, String encoding) throws UnsupportedEncodingException - Specified by:
getNewContentHandler
in interfaceContentHandlerFactory
- Throws:
UnsupportedEncodingException
-
getNewContentHandler
- Specified by:
getNewContentHandler
in interfaceContentHandlerFactory
-