Package org.apache.cocoon.xml.sax
Class SAXUtils
java.lang.Object
org.apache.cocoon.xml.sax.SAXUtils
Deprecated.
This API is deprecated, migrate code to the XML APIs provided by the JDK.
XML utility methods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AttributesDeprecated.Empty attributes immutable object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateElement(ContentHandler contentHandler, String localName) Deprecated.Create a start and endElement with a empty Namespace and without Attributesstatic voidcreateElement(ContentHandler contentHandler, String localName, String stringValue) Deprecated.Create a start and endElement with a empty Namespace and without Attributes The content of the Element is set to the stringValue parameterstatic voidcreateElement(ContentHandler contentHandler, String localName, Attributes atts) Deprecated.Create a start and endElement with a empty Namespacestatic voidcreateElement(ContentHandler contentHandler, String localName, Attributes atts, String stringValue) Deprecated.Create a start and endElement with a empty Namespace The content of the Element is set to the stringValue parameterstatic voidcreateElementNS(ContentHandler contentHandler, String namespaceURI, String localName) Deprecated.Create a start and endElement without Attributesstatic voidcreateElementNS(ContentHandler contentHandler, String namespaceURI, String localName, String stringValue) Deprecated.Create a start and endElement without Attributes The content of the Element is set to the stringValue parameterstatic voidcreateElementNS(ContentHandler contentHandler, String namespaceURI, String localName, Attributes atts) Deprecated.Create a start and endElementstatic voidcreateElementNS(ContentHandler contentHandler, String namespaceURI, String localName, Attributes atts, String stringValue) Deprecated.Create a start and endElement with a empty Namespace The content of the Element is set to the stringValue parameterstatic voiddata(ContentHandler contentHandler, String data) Deprecated.Add string datastatic voidendElement(ContentHandler contentHandler, String localName) Deprecated.Create endElement with empty Namespacestatic voidendElement(ContentHandler contentHandler, String namespaceURI, String localName) Deprecated.Create endElement Prefix must be mapped to empty Stringstatic voidstartElement(ContentHandler contentHandler, String localName) Deprecated.Create a startElement with a empty Namespace and without Attributesstatic voidstartElement(ContentHandler contentHandler, String namespaceURI, String localName) Deprecated.Create a startElement without Attributes Prefix must be mapped to empty Stringstatic voidstartElement(ContentHandler contentHandler, String namespaceURI, String localName, Attributes atts) Deprecated.Create a startElement with a empty Namespace Prefix must be mapped to empty Stringstatic voidstartElement(ContentHandler contentHandler, String localName, Attributes atts) Deprecated.Create a startElement with a empty Namespace
-
Field Details
-
EMPTY_ATTRIBUTES
Deprecated.Empty attributes immutable object.
-
-
Constructor Details
-
SAXUtils
public SAXUtils()Deprecated.
-
-
Method Details
-
data
Deprecated.Add string data- Parameters:
contentHandler- The SAX content handlerdata- The string data- Throws:
SAXException
-
createElement
public static void createElement(ContentHandler contentHandler, String localName) throws SAXException Deprecated.Create a start and endElement with a empty Namespace and without Attributes- Parameters:
localName- The local name (without prefix)- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
createElement
public static void createElement(ContentHandler contentHandler, String localName, String stringValue) throws SAXException Deprecated.Create a start and endElement with a empty Namespace and without Attributes The content of the Element is set to the stringValue parameter- Parameters:
localName- The local name (without prefix)stringValue- The content of the Element- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
createElement
public static void createElement(ContentHandler contentHandler, String localName, Attributes atts) throws SAXException Deprecated.Create a start and endElement with a empty Namespace- Parameters:
localName- The local name (without prefix)atts- The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
createElement
public static void createElement(ContentHandler contentHandler, String localName, Attributes atts, String stringValue) throws SAXException Deprecated.Create a start and endElement with a empty Namespace The content of the Element is set to the stringValue parameter- Parameters:
localName- The local name (without prefix)atts- The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.stringValue- The content of the Element- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
createElementNS
public static void createElementNS(ContentHandler contentHandler, String namespaceURI, String localName) throws SAXException Deprecated.Create a start and endElement without Attributes- Parameters:
localName- The local name (without prefix)- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
createElementNS
public static void createElementNS(ContentHandler contentHandler, String namespaceURI, String localName, String stringValue) throws SAXException Deprecated.Create a start and endElement without Attributes The content of the Element is set to the stringValue parameter- Parameters:
localName- The local name (without prefix)stringValue- The content of the Element- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
createElementNS
public static void createElementNS(ContentHandler contentHandler, String namespaceURI, String localName, Attributes atts) throws SAXException Deprecated.Create a start and endElement- Parameters:
localName- The local name (without prefix)atts- The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
createElementNS
public static void createElementNS(ContentHandler contentHandler, String namespaceURI, String localName, Attributes atts, String stringValue) throws SAXException Deprecated.Create a start and endElement with a empty Namespace The content of the Element is set to the stringValue parameter- Parameters:
localName- The local name (without prefix)atts- The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.stringValue- The content of the Element- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
endElement
Deprecated.Create endElement with empty NamespaceFor information on the names, see startElement.
- Parameters:
localName- The local name (without prefix)- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.
-
endElement
public static void endElement(ContentHandler contentHandler, String namespaceURI, String localName) throws SAXException Deprecated.Create endElement Prefix must be mapped to empty StringFor information on the names, see startElement.
- Parameters:
localName- The local name (without prefix)- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.
-
startElement
public static void startElement(ContentHandler contentHandler, String localName) throws SAXException Deprecated.Create a startElement with a empty Namespace and without Attributes- Parameters:
localName- The local name (without prefix)- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
startElement
public static void startElement(ContentHandler contentHandler, String namespaceURI, String localName) throws SAXException Deprecated.Create a startElement without Attributes Prefix must be mapped to empty String- Parameters:
namespaceURI- The Namespace URIlocalName- The local name (without prefix)- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
startElement
public static void startElement(ContentHandler contentHandler, String localName, Attributes atts) throws SAXException Deprecated.Create a startElement with a empty Namespace- Parameters:
localName- The local name (without prefix)atts- The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
startElement
public static void startElement(ContentHandler contentHandler, String namespaceURI, String localName, Attributes atts) throws SAXException Deprecated.Create a startElement with a empty Namespace Prefix must be mapped to empty String- Parameters:
namespaceURI- The Namespace URIlocalName- The local name (without prefix)atts- The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-