public class FlatDtdProducer extends Object implements IDataSetProducer, EntityResolver, DeclHandler, LexicalHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
ANY
Constant for the value "ANY"
|
static String |
IMPLIED
Constant for the value "#IMPLIED"
|
static String |
REQUIRED
Constant for the value "#REQUIRED"
|
| Constructor and Description |
|---|
FlatDtdProducer() |
FlatDtdProducer(InputSource inputSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
attributeDecl(String elementName,
String attributeName,
String type,
String mode,
String value) |
protected String |
cleanupTableName(String tableName) |
void |
comment(char[] ch,
int start,
int length) |
void |
elementDecl(String name,
String model) |
void |
endCDATA() |
void |
endDTD() |
void |
endEntity(String name) |
void |
externalEntityDecl(String name,
String publicId,
String systemId) |
void |
internalEntityDecl(String name,
String value) |
void |
produce()
Process this dataset source.
|
InputSource |
resolveEntity(String publicId,
String systemId) |
void |
setConsumer(IDataSetConsumer consumer) |
static void |
setDeclHandler(XMLReader xmlReader,
DeclHandler handler) |
static void |
setLexicalHandler(XMLReader xmlReader,
LexicalHandler handler) |
void |
startCDATA() |
void |
startDTD(String name,
String publicId,
String systemId) |
void |
startEntity(String name) |
public static final String REQUIRED
public static final String IMPLIED
public static final String ANY
public FlatDtdProducer()
public FlatDtdProducer(InputSource inputSource)
public static void setDeclHandler(XMLReader xmlReader, DeclHandler handler) throws SAXNotRecognizedException, SAXNotSupportedException
public static void setLexicalHandler(XMLReader xmlReader, LexicalHandler handler) throws SAXNotRecognizedException, SAXNotSupportedException
public void setConsumer(IDataSetConsumer consumer) throws DataSetException
setConsumer in interface IDataSetProducerDataSetExceptionpublic void produce()
throws DataSetException
IDataSetProducerThis method is synchronous: it will not return until processing has ended. If a client application wants to terminate parsing early, it should throw an exception from the listener.
produce in interface IDataSetProducerDataSetExceptionpublic InputSource resolveEntity(String publicId, String systemId) throws SAXException
resolveEntity in interface EntityResolverSAXExceptionpublic void elementDecl(String name, String model) throws SAXException
elementDecl in interface DeclHandlerSAXExceptionpublic void attributeDecl(String elementName, String attributeName, String type, String mode, String value) throws SAXException
attributeDecl in interface DeclHandlerSAXExceptionpublic void internalEntityDecl(String name, String value) throws SAXException
internalEntityDecl in interface DeclHandlerSAXExceptionpublic void externalEntityDecl(String name, String publicId, String systemId) throws SAXException
externalEntityDecl in interface DeclHandlerSAXExceptionpublic void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD in interface LexicalHandlerSAXExceptionpublic void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXExceptionpublic void startEntity(String name) throws SAXException
startEntity in interface LexicalHandlerSAXExceptionpublic void endEntity(String name) throws SAXException
endEntity in interface LexicalHandlerSAXExceptionpublic void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXExceptionpublic void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXExceptionpublic void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlerSAXExceptionCopyright © 2002-2017. All Rights Reserved.