public class BasicContentHandlerFactory extends Object implements ContentHandlerFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
BasicContentHandlerFactory.HANDLER_TYPE
Common handler types for content.
|
| Constructor and Description |
|---|
BasicContentHandlerFactory(BasicContentHandlerFactory.HANDLER_TYPE type,
int writeLimit) |
| Modifier and Type | Method and Description |
|---|---|
ContentHandler |
getNewContentHandler() |
ContentHandler |
getNewContentHandler(OutputStream os,
String encoding) |
public BasicContentHandlerFactory(BasicContentHandlerFactory.HANDLER_TYPE type, int writeLimit)
type - basic type of handlerwriteLimit - max number of characters to store; if < 0, the handler will store all characterspublic ContentHandler getNewContentHandler()
getNewContentHandler in interface ContentHandlerFactorypublic ContentHandler getNewContentHandler(OutputStream os, String encoding) throws UnsupportedEncodingException
getNewContentHandler in interface ContentHandlerFactoryUnsupportedEncodingExceptionCopyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.