public class SAXUtils
extends java.lang.Object
Constructor and Description |
---|
SAXUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
prefixNodeName(java.lang.String prefix,
java.lang.String elemName) |
static void |
sendElement(org.xml.sax.ContentHandler handler,
java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts,
java.lang.String elemContent)
Sends a element with the simple character content
provided by the
elemContent param |
static void |
sendElementContent(org.xml.sax.ContentHandler handler,
java.lang.String content)
Sends character content from the provided string
|
static void |
sendElementContent(org.xml.sax.ContentHandler handler,
java.lang.String content,
boolean escape)
Sends character content from the provided string and filters non XML characters
|
static void |
sendElementContent(org.xml.sax.ContentHandler handler,
java.lang.String content,
boolean escape,
java.lang.Character replace)
Sends character content from the provided string and replaces non XML characters
by another character, space by default.
|
public static java.lang.String prefixNodeName(java.lang.String prefix, java.lang.String elemName)
public static void sendElement(org.xml.sax.ContentHandler handler, java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts, java.lang.String elemContent) throws org.xml.sax.SAXException
elemContent
paramuri
- The namespace urilocalName
- The local nameqName
- The qualified nameatts
- The attributeselemContent
- The character contentorg.xml.sax.SAXException
public static void sendElementContent(org.xml.sax.ContentHandler handler, java.lang.String content) throws org.xml.sax.SAXException
content
- The string of characters to sendorg.xml.sax.SAXException
public static void sendElementContent(org.xml.sax.ContentHandler handler, java.lang.String content, boolean escape) throws org.xml.sax.SAXException
handler
- The ContentHandlercontent
- The String to sendsescape
- Boolean to activate the filter on non XML charactersorg.xml.sax.SAXException
public static void sendElementContent(org.xml.sax.ContentHandler handler, java.lang.String content, boolean escape, java.lang.Character replace) throws org.xml.sax.SAXException
handler
- The contentHandlercontent
- The String to sendsescape
- Boolean to activate the filter on non XML charactersreplace
- The String used to replace non XML character. Default is space " "org.xml.sax.SAXException
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.