public class EcmsdkSAXSerializer extends DefaultHandler
Modifier and Type | Field and Description |
---|---|
static String |
ENCODING |
static String |
INDENT |
static String |
OMIT_XML_DECL |
Constructor and Description |
---|
EcmsdkSAXSerializer(OutputStream out) |
EcmsdkSAXSerializer(PrintWriter writer) |
Modifier and Type | Method and Description |
---|---|
void |
attributeDecl(String attrName,
String paramString2,
String paramString3,
String paramString4,
String paramString5)
Write attribute declaration
|
void |
characters(char[] params,
int paramInt1,
int paramInt2)
Print chars
|
void |
comment(char[] comment,
int firstLen,
int lastLen)
add comment
|
void |
elementDecl(String elemName,
String elemExtra)
write element declaration
|
void |
endCDATA()
End write CDATA
|
void |
endDocument()
End write document
|
void |
endDTD()
End dtd
|
void |
endElement(String tagName)
Write end element
|
void |
endElement(String emptyAtt1,
String emptyAtt2,
String tagName)
Write end element
implement interface from DefaultHandler
|
void |
endEntity(String entityName)
End entity
|
void |
externalEntityDecl(String entityName,
String publicName,
String systemId)
Write external entity
|
void |
flush() |
void |
internalEntityDecl(String entityName,
String entityRole)
Write internal declaration
|
void |
newLine()
new line
|
void |
notationDecl(String notationName,
String publicName,
String systemId)
add notation declaration
|
void |
processingInstruction(String nodeName,
String instruction)
Wrrite processing instruction
|
void |
setDocumentLocator(Locator2 locator)
Set documnet locator
|
void |
setProperty(String propName,
Object object)
Set property
|
void |
startCDATA()
Start write cdata
|
void |
startDocument()
Start write document
|
void |
startDTD(String doctype,
String publicType,
String systemId) |
void |
startElement(String tagName,
Attributes attributes)
Start write Elemnet
|
void |
startElement(String emptyAtt1,
String emptyAtt2,
String tagName,
Attributes attributes)
Start write Element
implement interface from DefaultHandler
|
void |
startEntity(String entityName)
Start entity
|
void |
unparsedEntityDecl(String entityName,
String publicName,
String systemId,
String ndataName)
Write unparsedEntityDecl
|
endPrefixMapping, error, fatalError, ignorableWhitespace, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, warning
public static final String ENCODING
public static final String INDENT
public static final String OMIT_XML_DECL
public EcmsdkSAXSerializer(PrintWriter writer)
public EcmsdkSAXSerializer(OutputStream out)
public void setProperty(String propName, Object object)
propName
- : name of propertyobject
- : objectpublic void setDocumentLocator(Locator2 locator)
locator
- public void flush() throws IOException
IOException
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
public void startElement(String emptyAtt1, String emptyAtt2, String tagName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
tagName
- attributes
- SAXException
public void startElement(String tagName, Attributes attributes) throws SAXException
tagName
- attributes
- SAXException
public void endElement(String emptyAtt1, String emptyAtt2, String tagName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
tagName
- SAXException
public void endElement(String tagName) throws SAXException
tagName
- SAXException
public void processingInstruction(String nodeName, String instruction) throws SAXException
processingInstruction
in interface ContentHandler
processingInstruction
in class DefaultHandler
nodeName
- instruction
- SAXException
public void characters(char[] params, int paramInt1, int paramInt2) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
params
- paramInt1
- paramInt2
- SAXException
public void startDTD(String doctype, String publicType, String systemId) throws SAXException
doctype
- publicType
- systemId
- SAXException
public void endDTD() throws SAXException
SAXException
public void startEntity(String entityName) throws SAXException
entityName
- SAXException
public void endEntity(String entityName) throws SAXException
entityName
- SAXException
public void startCDATA() throws SAXException
SAXException
public void endCDATA() throws SAXException
SAXException
public void comment(char[] comment, int firstLen, int lastLen) throws SAXException
comment
- firstLen
- lastLen
- SAXException
public void elementDecl(String elemName, String elemExtra) throws SAXException
elemName
- elemExtra
- SAXException
public void attributeDecl(String attrName, String paramString2, String paramString3, String paramString4, String paramString5) throws SAXException
attrName
- paramString2
- paramString3
- paramString4
- paramString5
- SAXException
public void internalEntityDecl(String entityName, String entityRole) throws SAXException
entityName
- entityRole
- SAXException
public void externalEntityDecl(String entityName, String publicName, String systemId) throws SAXException
entityName
- publicName
- systemId
- SAXException
public void notationDecl(String notationName, String publicName, String systemId) throws SAXException
notationDecl
in interface DTDHandler
notationDecl
in class DefaultHandler
notationName
- publicName
- systemId
- SAXException
public void unparsedEntityDecl(String entityName, String publicName, String systemId, String ndataName) throws SAXException
unparsedEntityDecl
in interface DTDHandler
unparsedEntityDecl
in class DefaultHandler
entityName
- publicName
- systemId
- ndataName
- SAXException
public void newLine() throws SAXException
SAXException
Copyright © 2023. All rights reserved.