public class XmlSequencerHandler extends DefaultHandler2
DefaultHandler2
implementation that is used by the sequencer.Modifier and Type | Field and Description |
---|---|
protected TextDecoder |
decoder
The TextDecoder that is used to decode the names.
|
static XmlSequencer.AttributeScoping |
DEFAULT_ATTRIBUTE_SCOPING
The default
XmlSequencer.AttributeScoping . |
static TextDecoder |
DEFAULT_DECODER
Decoder for XML names, to turn '_xHHHH_' sequences in the XML element and attribute names into the corresponding UTF-16
characters.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
comment(char[] ch,
int start,
int length) |
void |
endCDATA() |
protected void |
endContent()
See if there is any element content that needs to be completed.
|
void |
endElement(String uri,
String localName,
String name) |
void |
endEntity(String name) |
void |
endPrefixMapping(String prefix) |
void |
error(SAXParseException error) |
void |
externalEntityDecl(String name,
String publicId,
String systemId) |
void |
internalEntityDecl(String name,
String value) |
void |
processingInstruction(String target,
String data) |
void |
startCDATA() |
void |
startDocument() |
void |
startDTD(String name,
String publicId,
String systemId) |
void |
startElement(String uri,
String localName,
String name,
Attributes attributes) |
void |
startEntity(String name) |
void |
startPrefixMapping(String prefix,
String uri)
This method ensures that the namespace is registered with the
registry , using the supplied prefix
to register the namespace if required. |
void |
warning(SAXParseException warning) |
attributeDecl, elementDecl, endDTD, getExternalSubset, resolveEntity, resolveEntity
endDocument, fatalError, ignorableWhitespace, notationDecl, setDocumentLocator, skippedEntity, unparsedEntityDecl
public static TextDecoder DEFAULT_DECODER
public static XmlSequencer.AttributeScoping DEFAULT_ATTRIBUTE_SCOPING
XmlSequencer.AttributeScoping
.protected final TextDecoder decoder
protected void endContent() throws RepositoryException
RepositoryException
- if there is a problem writing the content to the repository sessionpublic void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
public void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD
in interface LexicalHandler
startDTD
in class DefaultHandler2
SAXException
public void externalEntityDecl(String name, String publicId, String systemId) throws SAXException
externalEntityDecl
in interface DeclHandler
externalEntityDecl
in class DefaultHandler2
SAXException
public void internalEntityDecl(String name, String value) throws SAXException
internalEntityDecl
in interface DeclHandler
internalEntityDecl
in class DefaultHandler2
SAXException
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
processingInstruction
in class DefaultHandler
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
This method ensures that the namespace is registered with the registry
, using the supplied prefix
to register the namespace if required. Note that because this class does not really use the namespace prefixes to create
names, no attempt is made to match the XML namespace prefixes.
startPrefixMapping
in interface ContentHandler
startPrefixMapping
in class DefaultHandler
SAXException
DefaultHandler.startPrefixMapping(String, String)
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
endPrefixMapping
in class DefaultHandler
SAXException
public void startEntity(String name)
startEntity
in interface LexicalHandler
startEntity
in class DefaultHandler2
public void endEntity(String name)
endEntity
in interface LexicalHandler
endEntity
in class DefaultHandler2
public void startCDATA() throws SAXException
startCDATA
in interface LexicalHandler
startCDATA
in class DefaultHandler2
SAXException
public void endCDATA() throws SAXException
endCDATA
in interface LexicalHandler
endCDATA
in class DefaultHandler2
SAXException
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class DefaultHandler
public void comment(char[] ch, int start, int length) throws SAXException
comment
in interface LexicalHandler
comment
in class DefaultHandler2
SAXException
public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String name) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void warning(SAXParseException warning)
warning
in interface ErrorHandler
warning
in class DefaultHandler
public void error(SAXParseException error)
error
in interface ErrorHandler
error
in class DefaultHandler
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.