Package org.apache.xalan.xsltc.runtime
Class StringValueHandler
java.lang.Object
org.apache.xml.serializer.EmptySerializer
org.apache.xalan.xsltc.runtime.StringValueHandler
- All Implemented Interfaces:
DOMSerializer,ExtendedContentHandler,ExtendedLexicalHandler,SerializationHandler,Serializer,ContentHandler,DTDHandler,ErrorHandler,DeclHandler,LexicalHandler
- Author:
- Jacek Ambroziak, Santiago Pericas-Geertsen, Morten Jorgensen
-
Field Summary
Fields inherited from interface org.apache.xml.serializer.ExtendedContentHandler
HTML_ATTREMPTY, HTML_ATTRURL, NO_BAD_CHARS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int off, int len) voidcharacters(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.voidendElement(String qname) This method is used to notify that an element has ended.getValue()The value of a PI must not contain the substring "?booleansetEscaping(boolean bool) Turns special character escaping on/off.voidstartElement(String qname) This method is used to notify of the start of an elementMethods inherited from class org.apache.xml.serializer.EmptySerializer
addAttribute, addAttribute, addAttribute, addAttributes, addUniqueAttribute, addXSLAttribute, asContentHandler, asDOM3Serializer, asDOMSerializer, attributeDecl, characters, close, comment, comment, 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, warningMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
StringValueHandler
public StringValueHandler()
-
-
Method Details
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classEmptySerializer- Throws:
SAXException- See Also:
-
getValue
-
characters
Description copied from interface:ExtendedContentHandlerThis method is used to notify of a character event, but passing the data as a character String rather than the standard character array.- Specified by:
charactersin interfaceExtendedContentHandler- Overrides:
charactersin classEmptySerializer- Parameters:
characters- the character data- Throws:
SAXException- See Also:
-
startElement
Description copied from interface:ExtendedContentHandlerThis method is used to notify of the start of an element- Specified by:
startElementin interfaceExtendedContentHandler- Overrides:
startElementin classEmptySerializer- Parameters:
qname- the fully qualified name of the element- Throws:
SAXException- See Also:
-
endElement
Description copied from interface:ExtendedContentHandlerThis method is used to notify that an element has ended. Unlike the standard SAX methodendElement(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.- Specified by:
endElementin interfaceExtendedContentHandler- Overrides:
endElementin classEmptySerializer- Parameters:
qname- the fully qualified element name.- Throws:
SAXException- See Also:
-
setEscaping
public boolean setEscaping(boolean bool) Description copied from interface:SerializationHandlerTurns special character escaping on/off. Note that characters will never, even if this option is set to 'true', be escaped within CDATA sections in output XML documents.- Specified by:
setEscapingin interfaceSerializationHandler- Overrides:
setEscapingin classEmptySerializer- Parameters:
bool- true if escaping is to be set on.- See Also:
-
getValueOfPI
The value of a PI must not contain the substring "?>". Should that substring be present, replace it by "? >".
-