当前位置: 首页>>代码示例>>Java>>正文


Java AbstractReader类代码示例

本文整理汇总了Java中com.thoughtworks.xstream.io.AbstractReader的典型用法代码示例。如果您正苦于以下问题:Java AbstractReader类的具体用法?Java AbstractReader怎么用?Java AbstractReader使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AbstractReader类属于com.thoughtworks.xstream.io包,在下文中一共展示了AbstractReader类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ReferenceByXPathUnmarshaller

import com.thoughtworks.xstream.io.AbstractReader; //导入依赖的package包/类
public ReferenceByXPathUnmarshaller(
        final Object root, final HierarchicalStreamReader reader, final ConverterLookup converterLookup,
        final Mapper mapper) {
    super(root, reader, converterLookup, mapper);
    this.reader = new PathTrackingReader(reader, pathTracker);
    isNameEncoding = reader.underlyingReader() instanceof AbstractReader;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:8,代码来源:ReferenceByXPathUnmarshaller.java

示例2: getReferenceKey

import com.thoughtworks.xstream.io.AbstractReader; //导入依赖的package包/类
@Override
protected Path getReferenceKey(final String reference) {
    final Path path = new Path(isNameEncoding
        ? ((AbstractReader)reader.underlyingReader()).decodeNode(reference)
        : reference);
    // We have absolute references, if path starts with '/'
    return reference.charAt(0) != '/' ? pathTracker.getPath().apply(path) : path;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:9,代码来源:ReferenceByXPathUnmarshaller.java

示例3: getReferenceKey

import com.thoughtworks.xstream.io.AbstractReader; //导入依赖的package包/类
protected Object getReferenceKey(String paramString)
{
  String str;
  if (this.isNameEncoding)
    str = ((AbstractReader)this.reader.underlyingReader()).decodeNode(paramString);
  else
    str = paramString;
  Path localPath = new Path(str);
  if (paramString.charAt(0) != '/')
    return this.pathTracker.getPath().apply(localPath);
  return localPath;
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:13,代码来源:ReferenceByXPathUnmarshaller.java

示例4: ReferenceByXPathUnmarshaller

import com.thoughtworks.xstream.io.AbstractReader; //导入依赖的package包/类
public ReferenceByXPathUnmarshaller(Object paramObject, HierarchicalStreamReader paramHierarchicalStreamReader, ConverterLookup paramConverterLookup, Mapper paramMapper)
{
  super(paramObject, paramHierarchicalStreamReader, paramConverterLookup, paramMapper);
  this.reader = new PathTrackingReader(paramHierarchicalStreamReader, this.pathTracker);
  this.isNameEncoding = (paramHierarchicalStreamReader.underlyingReader() instanceof AbstractReader);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:7,代码来源:ReferenceByXPathUnmarshaller.java


注:本文中的com.thoughtworks.xstream.io.AbstractReader类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。