public class BasicContentHandlerFactory extends java.lang.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 |
|---|---|
org.xml.sax.ContentHandler |
getNewContentHandler() |
org.xml.sax.ContentHandler |
getNewContentHandler(java.io.OutputStream os,
java.nio.charset.Charset charset) |
org.xml.sax.ContentHandler |
getNewContentHandler(java.io.OutputStream os,
java.lang.String encoding) |
BasicContentHandlerFactory.HANDLER_TYPE |
getType() |
int |
getWriteLimit() |
static BasicContentHandlerFactory.HANDLER_TYPE |
parseHandlerType(java.lang.String handlerTypeName,
BasicContentHandlerFactory.HANDLER_TYPE defaultType)
Tries to parse string into handler type.
|
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 static BasicContentHandlerFactory.HANDLER_TYPE parseHandlerType(java.lang.String handlerTypeName, BasicContentHandlerFactory.HANDLER_TYPE defaultType)
handlerTypeName - string to parsedefaultType - type to return if parse failspublic org.xml.sax.ContentHandler getNewContentHandler()
getNewContentHandler in interface ContentHandlerFactorypublic org.xml.sax.ContentHandler getNewContentHandler(java.io.OutputStream os,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
getNewContentHandler in interface ContentHandlerFactoryjava.io.UnsupportedEncodingExceptionpublic org.xml.sax.ContentHandler getNewContentHandler(java.io.OutputStream os,
java.nio.charset.Charset charset)
getNewContentHandler in interface ContentHandlerFactorypublic BasicContentHandlerFactory.HANDLER_TYPE getType()
public int getWriteLimit()
Copyright © 2010 - 2023 Adobe. All Rights Reserved