本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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);
}
示例11: readExternal
import com.tangosol.io.pof.PofReader; //導入依賴的package包/類
@Override
public void readExternal(PofReader in) throws IOException {
// nothing to read
}
示例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);
}
示例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);
}
示例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);
}