com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder Java Examples
The following examples show how to use
com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder.
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: XStreamFactory.java From engage-api-client with Apache License 2.0 | 5 votes |
public XStream createXStream() { return new XStream( new XppDriver() { @Override public HierarchicalStreamWriter createWriter(Writer out) { return new XmlApiPrintWriter(out, new XmlFriendlyNameCoder("__", "_")); } }); }
Example #2
Source File: XStreamFactory.java From engage-api-client with Apache License 2.0 | 5 votes |
public XStream createXStream(ReflectionProvider reflectionProvider) { return new XStream(reflectionProvider, new DomDriver("UTF-8", new XmlFriendlyNameCoder("__","_"))) { @Override protected MapperWrapper wrapMapper(MapperWrapper next) { return new ApiMapperWrapper(next, apiResponseType); } }; }
Example #3
Source File: XppReader.java From saros with GNU General Public License v2.0 | 5 votes |
public XppReader(XmlPullParser parser) { super(new XmlFriendlyNameCoder()); this.parser = parser; /* * As addition to the "hack" beyond we have to ensure that the parser * works, too, if XStream really pulls the very first element from the * underlying parser. ;) */ if (parser.getName() == null) justStarted = false; moveDown(); }
Example #4
Source File: PitXmlDriver.java From pitest with Apache License 2.0 | 4 votes |
public PitXmlDriver() { super(new XmlFriendlyNameCoder()); }
Example #5
Source File: GatfPrettyPrintWriter.java From gatf with Apache License 2.0 | 4 votes |
/** * @since 1.2 */ public GatfPrettyPrintWriter( Writer writer, char[] lineIndenter, String newLine, XmlFriendlyNameCoder replacer) { this(writer, XML_QUIRKS, lineIndenter, replacer, newLine, null); }
Example #6
Source File: GatfPrettyPrintWriter.java From gatf with Apache License 2.0 | 4 votes |
/** * @since 1.3 */ public GatfPrettyPrintWriter( Writer writer, int mode, char[] lineIndenter, XmlFriendlyNameCoder replacer) { this(writer, mode, lineIndenter, replacer, "\n", null); }
Example #7
Source File: GatfPrettyPrintWriter.java From gatf with Apache License 2.0 | 4 votes |
/** */ public GatfPrettyPrintWriter(Writer writer, char[] lineIndenter, String newLine) { this(writer, lineIndenter, newLine, new XmlFriendlyNameCoder()); }
Example #8
Source File: GatfPrettyPrintWriter.java From gatf with Apache License 2.0 | 4 votes |
/** * @since 1.3 */ public GatfPrettyPrintWriter(Writer writer, int mode, char[] lineIndenter) { this(writer, mode, lineIndenter, new XmlFriendlyNameCoder()); }
Example #9
Source File: GatfPrettyPrintWriter.java From gatf with Apache License 2.0 | 4 votes |
/** * @since 1.3 */ public GatfPrettyPrintWriter(Writer writer, int mode, XmlFriendlyNameCoder replacer) { this(writer, mode, new char[]{' ', ' '}, replacer); }
Example #10
Source File: GatfPrettyPrintWriter.java From gatf with Apache License 2.0 | 4 votes |
/** */ public GatfPrettyPrintWriter(Writer writer, XmlFriendlyNameCoder replacer) { this(writer, new char[]{' ', ' '}, "\n", replacer); }
Example #11
Source File: GatfPrettyPrintWriter.java From gatf with Apache License 2.0 | 4 votes |
public GatfPrettyPrintWriter(Writer writer, String[] cdataNodes) { this(writer, XML_QUIRKS, new char[]{' ', ' '}, new XmlFriendlyNameCoder(), "\n", cdataNodes); }
Example #12
Source File: XmlApiPrintWriter.java From engage-api-client with Apache License 2.0 | 4 votes |
public XmlApiPrintWriter(Writer writer, XmlFriendlyNameCoder replacer) { super(writer, replacer); }