本文整理汇总了Java中com.thoughtworks.xstream.io.naming.NameCoder类的典型用法代码示例。如果您正苦于以下问题:Java NameCoder类的具体用法?Java NameCoder怎么用?Java NameCoder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NameCoder类属于com.thoughtworks.xstream.io.naming包,在下文中一共展示了NameCoder类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: JettisonStaxWriter
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @deprecated As of 1.4 use
* {@link JettisonStaxWriter#JettisonStaxWriter(QNameMap, XMLStreamWriter, boolean, boolean, NameCoder, MappedNamespaceConvention)}
* instead
*/
@Deprecated
public JettisonStaxWriter(
final QNameMap qnameMap, final XMLStreamWriter out, final boolean writeEnclosingDocument,
final boolean namespaceRepairingMode, final XmlFriendlyReplacer replacer,
final MappedNamespaceConvention convention) throws XMLStreamException {
this(qnameMap, out, writeEnclosingDocument, namespaceRepairingMode, (NameCoder)replacer, convention);
}
示例2: XppReader
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* 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(final Reader reader, final XmlPullParser parser, final NameCoder nameCoder) {
super(nameCoder);
this.parser = parser;
this.reader = reader;
try {
parser.setInput(this.reader);
} catch (final XmlPullParserException e) {
throw new StreamException(e);
}
moveDown();
}
示例3: Dom4JXmlWriter
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4
*/
public Dom4JXmlWriter(final XMLWriter writer, final NameCoder nameCoder) {
super(nameCoder);
this.writer = writer;
elementStack = new FastStack<String>(16);
attributes = new AttributesImpl();
try {
writer.startDocument();
} catch (final SAXException e) {
throw new StreamException(e);
}
}
示例4: AbstractDocumentReader
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4
*/
protected AbstractDocumentReader(final Object rootElement, final NameCoder nameCoder) {
super(nameCoder);
current = rootElement;
pointers.push(new Pointer());
reassignCurrentElement(current);
}
示例5: StaxWriter
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* 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(
final QNameMap qnameMap, final XMLStreamWriter out, final boolean writeEnclosingDocument,
final boolean namespaceRepairingMode, final NameCoder nameCoder) throws XMLStreamException {
super(nameCoder);
this.qnameMap = qnameMap;
this.out = out;
this.writeEnclosingDocument = writeEnclosingDocument;
this.namespaceRepairingMode = namespaceRepairingMode;
if (writeEnclosingDocument) {
out.writeStartDocument();
}
}
示例6: StaxReader
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4
*/
public StaxReader(final QNameMap qnameMap, final XMLStreamReader in, final NameCoder replacer) {
super(replacer);
this.qnameMap = qnameMap;
this.in = in;
moveDown();
}
示例7: Dom4JReader
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4
*/
public Dom4JReader(final Document document, final NameCoder nameCoder) {
this(document.getRootElement(), nameCoder);
}
示例8: XppDomReader
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4
*/
public XppDomReader(final XppDom xppDom, final NameCoder nameCoder) {
super(xppDom, nameCoder);
}
示例9: getNameCoder
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
protected NameCoder getNameCoder() {
return replacer;
}
示例10: DomWriter
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4
*/
public DomWriter(final Document document, final NameCoder nameCoder) {
this(document.getDocumentElement(), document, nameCoder);
}
示例11: XppDomDriver
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4
*/
public XppDomDriver(final NameCoder nameCoder) {
super(nameCoder);
}
示例12: XomWriter
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4
*/
public XomWriter(final Element parentElement, final NameCoder nameCoder) {
super(parentElement, nameCoder);
}
示例13: Dom4JWriter
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4
*/
public Dom4JWriter(final Branch root, final DocumentFactory factory, final NameCoder nameCoder) {
super(root, nameCoder);
documentFactory = factory;
}
示例14: xmlFriendlyReplacer
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @deprecated As of 1.4
*/
@Deprecated
protected XmlFriendlyReplacer xmlFriendlyReplacer() {
final NameCoder nameCoder = getNameCoder();
return nameCoder instanceof XmlFriendlyReplacer ? (XmlFriendlyReplacer)nameCoder : null;
}
示例15: AbstractPullReader
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4
*/
protected AbstractPullReader(final NameCoder nameCoder) {
super(nameCoder);
}