/** * This will create a new <code>SAXHandler</code> that listens to SAX * events and creates a JDOM Document. The objects will be constructed * using the provided factory. * * @param factory <code>JDOMFactory</code> to be used for constructing * objects */ public SAXHandler(JDOMFactory factory) { if (factory != null) { this.factory = factory; } else { this.factory = new DefaultJDOMFactory(); } atRoot = true; declaredNamespaces = new ArrayList(); externalEntities = new HashMap(); document = this.factory.document(null); }
/** * @since 1.4 */ public JDomWriter(final Element container, final JDOMFactory factory, final NameCoder nameCoder) { super(container, nameCoder); documentFactory = factory; }
/** * @since 1.2 * @deprecated As of 1.4 use {@link JDomWriter#JDomWriter(Element, JDOMFactory, NameCoder)} instead. */ @Deprecated public JDomWriter(final Element container, final JDOMFactory factory, final XmlFriendlyReplacer replacer) { this(container, factory, (NameCoder)replacer); }
public JDomWriter(final Element container, final JDOMFactory factory) { this(container, factory, new XmlFriendlyNameCoder()); }
/** * @since 1.4 */ public JDomWriter(final JDOMFactory factory, final NameCoder nameCoder) { this(null, factory, nameCoder); }
/** * @since 1.2.1 * @deprecated As of 1.4 use {@link JDomWriter#JDomWriter(JDOMFactory, NameCoder)} instead. */ @Deprecated public JDomWriter(final JDOMFactory factory, final XmlFriendlyReplacer replacer) { this(null, factory, (NameCoder)replacer); }
public JDomWriter(final JDOMFactory factory) { this(null, factory); }
public JDomWriter(Element paramElement, JDOMFactory paramJDOMFactory) { this(paramElement, paramJDOMFactory, new XmlFriendlyNameCoder()); }
public JDomWriter(Element paramElement, JDOMFactory paramJDOMFactory, NameCoder paramNameCoder) { super(paramElement, paramNameCoder); this.documentFactory = paramJDOMFactory; }
public JDomWriter(Element paramElement, JDOMFactory paramJDOMFactory, XmlFriendlyReplacer paramXmlFriendlyReplacer) { this(paramElement, paramJDOMFactory, paramXmlFriendlyReplacer); }
public JDomWriter(JDOMFactory paramJDOMFactory) { this(null, paramJDOMFactory); }
public JDomWriter(JDOMFactory paramJDOMFactory, NameCoder paramNameCoder) { this(null, paramJDOMFactory, paramNameCoder); }
public JDomWriter(JDOMFactory paramJDOMFactory, XmlFriendlyReplacer paramXmlFriendlyReplacer) { this(null, paramJDOMFactory, paramXmlFriendlyReplacer); }
/** * Returns the factory used for constructing objects. * * @return <code>JDOMFactory</code> - the factory used for * constructing objects. * * @see #SAXHandler(org.jdom.JDOMFactory) */ public JDOMFactory getFactory() { return factory; }