public final class StringValueHandler extends EmptySerializer
ERR
HTML_ATTREMPTY, HTML_ATTRURL, NO_BAD_CHARS
Constructor and Description |
---|
StringValueHandler() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int off,
int len) |
void |
characters(String characters)
This method is used to notify of a character event, but passing the data
as a character String rather than the standard character array.
|
void |
endElement(String qname)
This method is used to notify that an element has ended.
|
String |
getValue() |
String |
getValueOfPI()
The value of a PI must not contain the substring "?>".
|
boolean |
setEscaping(boolean bool)
Turns special character escaping on/off.
|
void |
startElement(String qname)
This method is used to notify of the start of an element
|
addAttribute, addAttribute, addAttribute, addAttributes, addUniqueAttribute, addXSLAttribute, asContentHandler, asDOM3Serializer, asDOMSerializer, attributeDecl, characters, close, comment, comment, couldThrowException, couldThrowIOException, couldThrowSAXException, couldThrowSAXException, couldThrowSAXException, elementDecl, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, entityReference, error, externalEntityDecl, fatalError, flushPending, getDoctypePublic, getDoctypeSystem, getEncoding, getIndent, getIndentAmount, getMediaType, getNamespaceMappings, getNamespaceURI, getNamespaceURIFromPrefix, getOmitXMLDeclaration, getOutputFormat, getOutputProperty, getOutputPropertyDefault, getOutputStream, getPrefix, getStandalone, getTransformer, getVersion, getWriter, ignorableWhitespace, internalEntityDecl, namespaceAfterStartElement, notationDecl, processingInstruction, reset, serialize, setCdataSectionElements, setCdataSectionElements, setContentHandler, setDoctype, setDoctypePublic, setDoctypeSystem, setDocumentLocator, setDTDEntityExpansion, setEncoding, setIndent, setIndentAmount, setMediaType, setNamespaceMappings, setOmitXMLDeclaration, setOutputFormat, setOutputProperty, setOutputPropertyDefault, setOutputStream, setSourceLocator, setStandalone, setTransformer, setVersion, setWriter, skippedEntity, startCDATA, startDocument, startDTD, startElement, startElement, startEntity, startPrefixMapping, startPrefixMapping, unparsedEntityDecl, warning
public void characters(char[] ch, int off, int len) throws SAXException
characters
in interface ContentHandler
characters
in class EmptySerializer
SAXException
ContentHandler.characters(char[], int, int)
public String getValue()
public void characters(String characters) throws SAXException
ExtendedContentHandler
characters
in interface ExtendedContentHandler
characters
in class EmptySerializer
characters
- the character dataSAXException
ExtendedContentHandler.characters(java.lang.String)
public void startElement(String qname) throws SAXException
ExtendedContentHandler
startElement
in interface ExtendedContentHandler
startElement
in class EmptySerializer
qname
- the fully qualified name of the elementSAXException
ExtendedContentHandler.startElement(java.lang.String)
public void endElement(String qname) throws SAXException
ExtendedContentHandler
endElement(namespaceURI,localName,qName)only the last parameter is passed. If needed the serializer can derive the localName from the qualified name and derive the namespaceURI from its implementation.
endElement
in interface ExtendedContentHandler
endElement
in class EmptySerializer
qname
- the fully qualified element name.SAXException
ExtendedContentHandler.endElement(java.lang.String)
public boolean setEscaping(boolean bool)
SerializationHandler
setEscaping
in interface SerializationHandler
setEscaping
in class EmptySerializer
bool
- true if escaping is to be set on.SerializationHandler.setEscaping(boolean)
public String getValueOfPI()
Copyright © 2018 JBoss by Red Hat. All rights reserved.