com.thoughtworks.xstream.io.naming.NameCoder Java Examples
The following examples show how to use
com.thoughtworks.xstream.io.naming.NameCoder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JDom2Writer.java From lams with GNU General Public License v2.0 | 5 votes |
/** * @since 1.4.5 */ public JDom2Writer( final Element container, final JDOMFactory factory, final NameCoder nameCoder) { super(container, nameCoder); documentFactory = factory; }
Example #2
Source File: XppReader.java From lams with GNU General Public License v2.0 | 5 votes |
/** * Construct an XppReader. * * @param reader the reader with the input data * @param parser the XPP parser to use * @param nameCoder the coder for XML friendly tag and attribute names * @since 1.4 */ public XppReader(Reader reader, XmlPullParser parser, NameCoder nameCoder) { super(nameCoder); this.parser = parser; this.reader = reader; try { parser.setInput(this.reader); } catch (XmlPullParserException e) { throw new StreamException(e); } moveDown(); }
Example #3
Source File: PrettyPrintWriter.java From lams with GNU General Public License v2.0 | 5 votes |
private PrettyPrintWriter( Writer writer, int mode, char[] lineIndenter, NameCoder nameCoder, String newLine) { super(nameCoder); this.writer = new QuickWriter(writer); this.lineIndenter = lineIndenter; this.newLine = newLine; this.mode = mode; if (mode < XML_QUIRKS || mode > XML_1_1) { throw new IllegalArgumentException("Not a valid XML mode"); } }
Example #4
Source File: JettisonStaxWriter.java From lams with GNU General Public License v2.0 | 5 votes |
/** * @deprecated As of 1.4 use * {@link JettisonStaxWriter#JettisonStaxWriter(QNameMap, XMLStreamWriter, boolean, boolean, NameCoder, MappedNamespaceConvention)} * instead */ public JettisonStaxWriter( QNameMap qnameMap, XMLStreamWriter out, boolean writeEnclosingDocument, boolean namespaceRepairingMode, XmlFriendlyReplacer replacer, MappedNamespaceConvention convention) throws XMLStreamException { this(qnameMap, out, writeEnclosingDocument, namespaceRepairingMode, (NameCoder) replacer, convention); }
Example #5
Source File: StaxReader.java From lams with GNU General Public License v2.0 | 5 votes |
/** * @since 1.4 */ public StaxReader(QNameMap qnameMap, XMLStreamReader in, NameCoder replacer) { super(replacer); this.qnameMap = qnameMap; this.in = in; moveDown(); }
Example #6
Source File: StaxWriter.java From lams with GNU General Public License v2.0 | 5 votes |
/** * Allows a StaxWriter to be created for partial XML output * * @param qnameMap is the mapper of Java class names to QNames * @param out the stream to output to * @param writeEnclosingDocument a flag to indicate whether or not the start/end document * events should be written * @param namespaceRepairingMode a flag to enable StAX' namespace repairing mode * @param nameCoder the xml-friendly replacer to escape Java names * @throws XMLStreamException if the events could not be written to the output * @since 1.4 */ public StaxWriter( QNameMap qnameMap, XMLStreamWriter out, boolean writeEnclosingDocument, boolean namespaceRepairingMode, NameCoder nameCoder) throws XMLStreamException { super(nameCoder); this.qnameMap = qnameMap; this.out = out; this.writeEnclosingDocument = writeEnclosingDocument; this.namespaceRepairingMode = namespaceRepairingMode; if (writeEnclosingDocument) { out.writeStartDocument(); } }
Example #7
Source File: AbstractDocumentReader.java From lams with GNU General Public License v2.0 | 5 votes |
/** * @since 1.4 */ protected AbstractDocumentReader(Object rootElement, NameCoder nameCoder) { super(nameCoder); this.current = rootElement; pointers.push(new Pointer()); reassignCurrentElement(current); }
Example #8
Source File: JDom2Driver.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4.5 */ public JDom2Driver(NameCoder nameCoder) { super(nameCoder); }
Example #9
Source File: JDomReader.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4 */ public JDomReader(Document document, NameCoder nameCoder) { super(document.getRootElement(), nameCoder); }
Example #10
Source File: JDom2Reader.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4.5 */ public JDom2Reader(Document document, NameCoder nameCoder) { super(document.getRootElement(), nameCoder); }
Example #11
Source File: Dom4JWriter.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4 */ public Dom4JWriter(final Branch root, final NameCoder nameCoder) { this(root, new DocumentFactory(), nameCoder); }
Example #12
Source File: StaxDriver.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4 */ public StaxDriver(NameCoder nameCoder) { this(new QNameMap(), nameCoder); }
Example #13
Source File: AbstractXmlWriter.java From lams with GNU General Public License v2.0 | 4 votes |
protected AbstractXmlWriter(NameCoder nameCoder) { super(nameCoder); }
Example #14
Source File: XppDomReader.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4 */ public XppDomReader(XppDom xppDom, NameCoder nameCoder) { super(xppDom, nameCoder); }
Example #15
Source File: PrettyPrintWriter.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4 */ public PrettyPrintWriter( Writer writer, int mode, char[] lineIndenter, NameCoder nameCoder) { this(writer, mode, lineIndenter, nameCoder, "\n"); }
Example #16
Source File: StaxDriver.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4 */ public StaxDriver(QNameMap qnameMap, NameCoder nameCoder) { super(nameCoder); this.qnameMap = qnameMap; }
Example #17
Source File: JDomWriter.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4 */ public JDomWriter(final Element container, final NameCoder nameCoder) { this(container, new DefaultJDOMFactory(), nameCoder); }
Example #18
Source File: Dom4JWriter.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4 */ public Dom4JWriter( final Branch root, final DocumentFactory factory, final NameCoder nameCoder) { super(root, nameCoder); documentFactory = factory; }
Example #19
Source File: StandardStaxDriver.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4.6 */ public StandardStaxDriver(NameCoder nameCoder) { super(nameCoder); }
Example #20
Source File: AbstractXmlDriver.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @deprecated As of 1.4 */ protected XmlFriendlyReplacer xmlFriendlyReplacer() { NameCoder nameCoder = getNameCoder(); return nameCoder instanceof XmlFriendlyReplacer ? (XmlFriendlyReplacer)nameCoder : null; }
Example #21
Source File: DomDriver.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4 */ public DomDriver(String encoding, NameCoder nameCoder) { super(nameCoder); this.encoding = encoding; }
Example #22
Source File: Dom4JDriver.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4 */ public Dom4JDriver(DocumentFactory documentFactory, OutputFormat outputFormat, NameCoder nameCoder) { super(nameCoder); this.documentFactory = documentFactory; this.outputFormat = outputFormat; }
Example #23
Source File: DomReader.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4 */ public DomReader(Document document, NameCoder nameCoder) { this(document.getDocumentElement(), nameCoder); }
Example #24
Source File: AbstractPullReader.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4 */ protected AbstractPullReader(NameCoder nameCoder) { super(nameCoder); }
Example #25
Source File: AbstractXmlWriter.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @deprecated As of 1.4 */ protected AbstractXmlWriter(XmlFriendlyReplacer replacer) { this((NameCoder)replacer); }
Example #26
Source File: XomReader.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4 */ public XomReader(Element rootElement, NameCoder nameCoder) { super(rootElement, nameCoder); }
Example #27
Source File: XomReader.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4 */ public XomReader(Document document, NameCoder nameCoder) { super(document.getRootElement(), nameCoder); }
Example #28
Source File: JDomDriver.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4 */ public JDomDriver(NameCoder nameCoder) { super(nameCoder); }
Example #29
Source File: JDom2Writer.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4.5 */ public JDom2Writer(final JDOMFactory factory, final NameCoder nameCoder) { this(null, factory, nameCoder); }
Example #30
Source File: XppDomWriter.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @since 1.4 */ public XppDomWriter(final XppDom parent, final NameCoder nameCoder) { super(parent, nameCoder); }