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


Java PofReader类代码示例

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


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

示例1: decode

import com.tangosol.io.pof.PofReader; //导入依赖的package包/类
@Override
public Object decode(PofReader pofReader, int i) throws IOException {
    String className = pofReader.readString(i);
    Class<?> result;
    try {
        result = Class.forName(className);
    } catch (ClassNotFoundException e) {
        throw new RuntimeException(e);
    }
    return result;
}
 
开发者ID:michalwojciechowski,项目名称:coherence-sql,代码行数:12,代码来源:ClassCodec.java

示例2: deserialize

import com.tangosol.io.pof.PofReader; //导入依赖的package包/类
@Override
public Object deserialize(PofReader in) throws IOException {
	XDMDocumentType type = new XDMDocumentType(in.readInt(0), in.readString(1));
	type.setNormalized(in.readBoolean(2));
	Set<XDMNamespace> schemas = new HashSet<XDMNamespace>();
	in.readCollection(3, schemas);
	for (XDMNamespace schema: schemas) {
		type.addSchema(schema);
	}
	in.readRemainder();
	return type;
}
 
开发者ID:dsukhoroslov,项目名称:bagri,代码行数:13,代码来源:XDMDocumentTypePofSerializer.java

示例3: deserialize

import com.tangosol.io.pof.PofReader; //导入依赖的package包/类
@Override
public Object deserialize(PofReader in) throws IOException {

	XDMElement xData = new XDMElement(
			in.readLong(0),
			in.readLong(1),
			in.readString(2));
	in.readRemainder();
	return xData;
}
 
开发者ID:dsukhoroslov,项目名称:bagri,代码行数:11,代码来源:XDMElementPofSerializer.java

示例4: deserialize

import com.tangosol.io.pof.PofReader; //导入依赖的package包/类
@Override
public Object deserialize(PofReader in) throws IOException {
	XDMPath path = new XDMPath(in.readString(0),
			in.readInt(1),
			(XDMNodeKind) in.readObject(2),
			in.readInt(3),
			in.readInt(4),
			in.readInt(5));
	in.readRemainder();
	return path;
}
 
开发者ID:dsukhoroslov,项目名称:bagri,代码行数:12,代码来源:XDMPathPofSerializer.java

示例5: deserialize

import com.tangosol.io.pof.PofReader; //导入依赖的package包/类
@Override
public Object deserialize(PofReader in) throws IOException {

	List<Long> ids = new ArrayList<>();
	in.readCollection(0, ids);
	XDMIndex xIndex = new XDMIndex(ids);
	//xIndex.setPath(in.readString(0));
	//xIndex.setValue(in.readObject(1));
	in.readRemainder();
	return xIndex;
}
 
开发者ID:dsukhoroslov,项目名称:bagri,代码行数:12,代码来源:XDMIndexPofSerializer.java

示例6: deserialize

import com.tangosol.io.pof.PofReader; //导入依赖的package包/类
@Override
public Object deserialize(PofReader in) throws IOException {
	
	XDMDocument doc = new XDMDocument(in.readLong(0),
			in.readString(1),
			in.readInt(2),
			in.readInt(3),
			(java.util.Date) in.readObject(4),
			in.readString(5),
			in.readString(6));
	in.readRemainder();
	return doc;
}
 
开发者ID:dsukhoroslov,项目名称:bagri,代码行数:14,代码来源:XDMDocumentPofSerializer.java

示例7: deserialize

import com.tangosol.io.pof.PofReader; //导入依赖的package包/类
@Override
public Object deserialize(PofReader in) throws IOException {

	XDMNamespace xns = new XDMNamespace(
			in.readString(0),
			in.readString(1),
			in.readString(2));
	in.readRemainder();
	return xns;
}
 
开发者ID:dsukhoroslov,项目名称:bagri,代码行数:11,代码来源:XDMNamespacePofSerializer.java

示例8: deserialize

import com.tangosol.io.pof.PofReader; //导入依赖的package包/类
@Override
public Object deserialize(PofReader pofReader) throws IOException {
    Date date = new Date(pofReader.readLong(0));
    pofReader.readRemainder();
    return date;
}
 
开发者ID:dsukhoroslov,项目名称:bagri,代码行数:7,代码来源:DatePofSerializer.java

示例9: readExternal

import com.tangosol.io.pof.PofReader; //导入依赖的package包/类
@Override
public void readExternal(PofReader in) throws IOException {
	documentKey = in.readLong(0);
	pathId = in.readInt(1);
}
 
开发者ID:dsukhoroslov,项目名称:bagri,代码行数:6,代码来源:DataDocumentKey.java

示例10: readExternal

import com.tangosol.io.pof.PofReader; //导入依赖的package包/类
@Override
public void readExternal(PofReader in) throws IOException {
	setPath(in.readString(0));
	documentId = in.readLong(1);
}
 
开发者ID:dsukhoroslov,项目名称:bagri,代码行数:6,代码来源:PathDocumentKey.java

示例11: readExternal

import com.tangosol.io.pof.PofReader; //导入依赖的package包/类
@Override
public void readExternal(PofReader in) throws IOException {
	// nothing to read
}
 
开发者ID:dsukhoroslov,项目名称:bagri,代码行数:5,代码来源:DocumentRemover.java

示例12: readExternal

import com.tangosol.io.pof.PofReader; //导入依赖的package包/类
@Override
public void readExternal(PofReader in) throws IOException {
	docType = in.readInt(0);
	template = in.readString(1);
	in.readMap(2, params);
}
 
开发者ID:dsukhoroslov,项目名称:bagri,代码行数:7,代码来源:DocumentBuilder.java

示例13: readExternal

import com.tangosol.io.pof.PofReader; //导入依赖的package包/类
@Override
public void readExternal(PofReader in) throws IOException {
	uri = in.readString(0);
	xml = in.readString(1);
}
 
开发者ID:dsukhoroslov,项目名称:bagri,代码行数:6,代码来源:DocumentCreator.java

示例14: readExternal

import com.tangosol.io.pof.PofReader; //导入依赖的package包/类
public void readExternal(PofReader reader) throws IOException {
   value = reader.readByteArray(VALUE);
   cas = reader.readLong(CAS);
   flags = reader.readInt(FLAGS);
}
 
开发者ID:C2B2,项目名称:memcached-4-coherence,代码行数:6,代码来源:CacheEntry.java


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