|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.gouv.culture.sdx.utils.SAXUtils
public class SAXUtils
Statics methods utilities for SAX
Constructor Summary | |
---|---|
SAXUtils()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAXUtils()
Method Detail |
---|
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
param
uri
- The namespace urilocalName
- The local nameqName
- The qualified nameatts
- The attributeselemContent
- The character content
org.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 send
org.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 characters
org.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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |