Example usage for org.xml.sax.helpers NamespaceSupport NamespaceSupport

List of usage examples for org.xml.sax.helpers NamespaceSupport NamespaceSupport

Introduction

In this page you can find the example usage for org.xml.sax.helpers NamespaceSupport NamespaceSupport.

Prototype

public NamespaceSupport() 

Source Link

Document

Create a new Namespace support object.

Usage

From source file:XMLWriter.java

/**
 * Internal initialization method.// w ww  .ja  va 2s . co m
 *
 * <p>All of the public constructors invoke this method.
 *
 * @param writer The output destination, or null to use
 *        standard output.
 */
private void init(Writer writer) {
    setOutput(writer);
    nsSupport = new NamespaceSupport();
    prefixTable = new Hashtable();
    forcedDeclTable = new Hashtable();
    doneDeclTable = new Hashtable();
    outputProperties = new Properties();
}

From source file:org.geotools.data.complex.config.AppSchemaDataAccessConfigurator.java

/**
 * Creates a new ComplexDataStoreConfigurator object.
 * /*from   w ww  .ja v  a  2 s. c  o m*/
 * @param config
 *            DOCUMENT ME!
 */
private AppSchemaDataAccessConfigurator(AppSchemaDataAccessDTO config) {
    this.config = config;
    namespaces = new NamespaceSupport();
    Map nsMap = config.getNamespaces();
    for (Iterator it = nsMap.entrySet().iterator(); it.hasNext();) {
        Map.Entry entry = (Entry) it.next();
        String prefix = (String) entry.getKey();
        String namespace = (String) entry.getValue();
        namespaces.declarePrefix(prefix, namespace);
    }
}

From source file:org.jahia.services.importexport.XMLWriter.java

/**
 * Internal initialization method./*from  w ww  .  j  a  v  a2s. co m*/
 *
 * <p>All of the public constructors invoke this method.
 *
 * @param writer The output destination, or null to use
 *        standard output.
 */
private void init(Writer writer) {
    setOutput(writer);
    nsSupport = new NamespaceSupport();
    prefixTable = new HashMap();
    forcedDeclTable = new HashMap();
    doneDeclTable = new HashMap();
}