本文整理汇总了Java中com.thoughtworks.xstream.io.naming.NameCoder类的典型用法代码示例。如果您正苦于以下问题:Java NameCoder类的具体用法?Java NameCoder怎么用?Java NameCoder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NameCoder类属于com.thoughtworks.xstream.io.naming包,在下文中一共展示了NameCoder类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:13,代码来源:JettisonStaxWriter.java
示例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();
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:20,代码来源:XppReader.java
示例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);
}
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:15,代码来源:Dom4JXmlWriter.java
示例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);
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:10,代码来源:AbstractDocumentReader.java
示例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();
}
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:24,代码来源:StaxWriter.java
示例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();
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:10,代码来源:StaxReader.java
示例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);
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:7,代码来源:Dom4JReader.java
示例8: XppDomReader
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4
*/
public XppDomReader(final XppDom xppDom, final NameCoder nameCoder) {
super(xppDom, nameCoder);
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:7,代码来源:XppDomReader.java
示例9: getNameCoder
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
protected NameCoder getNameCoder() {
return replacer;
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:4,代码来源:AbstractDriver.java
示例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);
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:7,代码来源:DomWriter.java
示例11: XppDomDriver
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4
*/
public XppDomDriver(final NameCoder nameCoder) {
super(nameCoder);
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:7,代码来源:XppDomDriver.java
示例12: XomWriter
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4
*/
public XomWriter(final Element parentElement, final NameCoder nameCoder) {
super(parentElement, nameCoder);
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:7,代码来源:XomWriter.java
示例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;
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:8,代码来源:Dom4JWriter.java
示例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;
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:9,代码来源:AbstractXmlDriver.java
示例15: AbstractPullReader
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4
*/
protected AbstractPullReader(final NameCoder nameCoder) {
super(nameCoder);
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:7,代码来源:AbstractPullReader.java
示例16: XomReader
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4
*/
public XomReader(final Element rootElement, final NameCoder nameCoder) {
super(rootElement, nameCoder);
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:7,代码来源:XomReader.java
示例17: JDom2Writer
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4.5
*/
public JDom2Writer(final Element container, final JDOMFactory factory, final NameCoder nameCoder) {
super(container, nameCoder);
documentFactory = factory;
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:8,代码来源:JDom2Writer.java
示例18: XppDomWriter
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4
*/
public XppDomWriter(final XppDom parent, final NameCoder nameCoder) {
super(parent, nameCoder);
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:7,代码来源:XppDomWriter.java
示例19: BEAStaxDriver
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4.6
*/
public BEAStaxDriver(final QNameMap qnameMap, final NameCoder nameCoder) {
super(qnameMap, nameCoder);
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:7,代码来源:BEAStaxDriver.java
示例20: CompactWriter
import com.thoughtworks.xstream.io.naming.NameCoder; //导入依赖的package包/类
/**
* @since 1.4
*/
public CompactWriter(final Writer writer, final NameCoder nameCoder) {
super(writer, nameCoder);
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:7,代码来源:CompactWriter.java
注:本文中的com.thoughtworks.xstream.io.naming.NameCoder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论