public class SAXUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.xml.sax.Attributes |
EMPTY_ATTRIBUTES
Empty attributes immutable object.
|
Constructor and Description |
---|
SAXUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
createElement(org.xml.sax.ContentHandler contentHandler,
java.lang.String localName)
Create a start and endElement with a empty Namespace and without Attributes
|
static void |
createElement(org.xml.sax.ContentHandler contentHandler,
java.lang.String localName,
org.xml.sax.Attributes atts)
Create a start and endElement with a empty Namespace
|
static void |
createElement(org.xml.sax.ContentHandler contentHandler,
java.lang.String localName,
org.xml.sax.Attributes atts,
java.lang.String stringValue)
Create a start and endElement with a empty Namespace
The content of the Element is set to the stringValue parameter
|
static void |
createElement(org.xml.sax.ContentHandler contentHandler,
java.lang.String localName,
java.lang.String stringValue)
Create a start and endElement with a empty Namespace and without Attributes
The content of the Element is set to the stringValue parameter
|
static void |
createElementNS(org.xml.sax.ContentHandler contentHandler,
java.lang.String namespaceURI,
java.lang.String localName)
Create a start and endElement without Attributes
|
static void |
createElementNS(org.xml.sax.ContentHandler contentHandler,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes atts)
Create a start and endElement
|
static void |
createElementNS(org.xml.sax.ContentHandler contentHandler,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes atts,
java.lang.String stringValue)
Create a start and endElement with a empty Namespace
The content of the Element is set to the stringValue parameter
|
static void |
createElementNS(org.xml.sax.ContentHandler contentHandler,
java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String stringValue)
Create a start and endElement without Attributes
The content of the Element is set to the stringValue parameter
|
static void |
data(org.xml.sax.ContentHandler contentHandler,
java.lang.String data)
Add string data
|
static void |
endElement(org.xml.sax.ContentHandler contentHandler,
java.lang.String localName)
Create endElement with empty Namespace
|
static void |
endElement(org.xml.sax.ContentHandler contentHandler,
java.lang.String namespaceURI,
java.lang.String localName)
Create endElement
Prefix must be mapped to empty String
|
static void |
startElement(org.xml.sax.ContentHandler contentHandler,
java.lang.String localName)
Create a startElement with a empty Namespace and without Attributes
|
static void |
startElement(org.xml.sax.ContentHandler contentHandler,
java.lang.String localName,
org.xml.sax.Attributes atts)
Create a startElement with a empty Namespace
|
static void |
startElement(org.xml.sax.ContentHandler contentHandler,
java.lang.String namespaceURI,
java.lang.String localName)
Create a startElement without Attributes
Prefix must be mapped to empty String
|
static void |
startElement(org.xml.sax.ContentHandler contentHandler,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes atts)
Create a startElement with a empty Namespace
Prefix must be mapped to empty String
|
public static final org.xml.sax.Attributes EMPTY_ATTRIBUTES
public static void data(org.xml.sax.ContentHandler contentHandler, java.lang.String data) throws org.xml.sax.SAXException
contentHandler
- The SAX content handlerdata
- The string dataorg.xml.sax.SAXException
public static void createElement(org.xml.sax.ContentHandler contentHandler, java.lang.String localName) throws org.xml.sax.SAXException
localName
- The local name (without prefix)org.xml.sax.SAXException
- Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String)
public static void createElement(org.xml.sax.ContentHandler contentHandler, java.lang.String localName, java.lang.String stringValue) throws org.xml.sax.SAXException
localName
- The local name (without prefix)stringValue
- The content of the Elementorg.xml.sax.SAXException
- Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String)
public static void createElement(org.xml.sax.ContentHandler contentHandler, java.lang.String localName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
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.org.xml.sax.SAXException
- Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String)
,
Attributes
public static void createElement(org.xml.sax.ContentHandler contentHandler, java.lang.String localName, org.xml.sax.Attributes atts, java.lang.String stringValue) throws org.xml.sax.SAXException
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 Elementorg.xml.sax.SAXException
- Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String)
,
Attributes
public static void createElementNS(org.xml.sax.ContentHandler contentHandler, java.lang.String namespaceURI, java.lang.String localName) throws org.xml.sax.SAXException
localName
- The local name (without prefix)org.xml.sax.SAXException
- Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String)
public static void createElementNS(org.xml.sax.ContentHandler contentHandler, java.lang.String namespaceURI, java.lang.String localName, java.lang.String stringValue) throws org.xml.sax.SAXException
localName
- The local name (without prefix)stringValue
- The content of the Elementorg.xml.sax.SAXException
- Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String)
public static void createElementNS(org.xml.sax.ContentHandler contentHandler, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
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.org.xml.sax.SAXException
- Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String)
,
Attributes
public static void createElementNS(org.xml.sax.ContentHandler contentHandler, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes atts, java.lang.String stringValue) throws org.xml.sax.SAXException
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 Elementorg.xml.sax.SAXException
- Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String)
,
Attributes
public static void endElement(org.xml.sax.ContentHandler contentHandler, java.lang.String localName) throws org.xml.sax.SAXException
For information on the names, see startElement.
localName
- The local name (without prefix)org.xml.sax.SAXException
- Any SAX exception, possibly
wrapping another exception.public static void endElement(org.xml.sax.ContentHandler contentHandler, java.lang.String namespaceURI, java.lang.String localName) throws org.xml.sax.SAXException
For information on the names, see startElement.
localName
- The local name (without prefix)org.xml.sax.SAXException
- Any SAX exception, possibly
wrapping another exception.public static void startElement(org.xml.sax.ContentHandler contentHandler, java.lang.String localName) throws org.xml.sax.SAXException
localName
- The local name (without prefix)org.xml.sax.SAXException
- Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String)
public static void startElement(org.xml.sax.ContentHandler contentHandler, java.lang.String namespaceURI, java.lang.String localName) throws org.xml.sax.SAXException
namespaceURI
- The Namespace URIlocalName
- The local name (without prefix)org.xml.sax.SAXException
- Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String)
public static void startElement(org.xml.sax.ContentHandler contentHandler, java.lang.String localName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
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.org.xml.sax.SAXException
- Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String)
,
Attributes
public static void startElement(org.xml.sax.ContentHandler contentHandler, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
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.org.xml.sax.SAXException
- Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String)
,
Attributes
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"