本文整理汇总了Java中com.sleepycat.bind.tuple.TupleInput.readString方法的典型用法代码示例。如果您正苦于以下问题:Java TupleInput.readString方法的具体用法?Java TupleInput.readString怎么用?Java TupleInput.readString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sleepycat.bind.tuple.TupleInput
的用法示例。
在下文中一共展示了TupleInput.readString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: entryToObject
import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
public Object entryToObject(TupleInput ti) {
String sku = ti.readString();
String itemName = ti.readString();
String category = ti.readString();
String vendor = ti.readString();
int vendorInventory = ti.readInt();
float vendorPrice = ti.readFloat();
Inventory inventory = new Inventory();
inventory.setSku(sku);
inventory.setItemName(itemName);
inventory.setCategory(category);
inventory.setVendor(vendor);
inventory.setVendorInventory(vendorInventory);
inventory.setVendorPrice(vendorPrice);
return inventory;
}
示例2: entryToObject
import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
public Beacon entryToObject(TupleInput ti) {
String scannerID = ti.readString();
String uuid = ti.readString();
int code = ti.readInt();
int manufacturer = ti.readInt();
int major = ti.readInt();
int minor = ti.readInt();
int power = ti.readInt();
int calibratedPower = ti.readInt();
int rssi = ti.readInt();
long time = ti.readLong();
int messageType = ti.readInt();
Beacon beacon = new Beacon(scannerID, uuid, code, manufacturer, major, minor, power, rssi, time);
beacon.setCalibratedPower(calibratedPower);
beacon.setMessageType(messageType);
return beacon;
}
示例3: readValue
import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
private static Object readValue(final TupleInput ti) {
final String type = ti.readString();
switch (type) {
case "NULL":
return null;
case "F":
return ti.readFloat();
case "L":
return ti.readLong();
case "I":
return ti.readInt();
case "D":
return ti.readDouble();
case "S":
return ti.readString();
case "*":
final int size = ti.readInt();
final Set set = new HashSet();
for (int i = 0; i < size; i++) {
set.add(readValue(ti));
}
return set;
default:
throw new IllegalArgumentException(" type " + type + " non reconnu");
}
}
示例4: entryToObject
import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
/**
* Create the entity by combining the stored key and data.
*/
public Object entryToObject(TupleInput keyInput, Object dataInput) {
String number = keyInput.readString();
PartData data = (PartData) dataInput;
return new Part(number, data.getName(), data.getColor(),
data.getWeight(), data.getCity());
}
示例5: entryToObject
import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
/**
* Create the entity by combining the stored key and data.
* This "tricky" binding returns the stored data as the entity, but
* first it sets the transient key fields from the stored key.
*/
public Object entryToObject(TupleInput keyInput, Object dataInput) {
String number = keyInput.readString();
Part part = (Part) dataInput;
part.setKey(number);
return part;
}
示例6: entryToObject
import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
/**
* Create the entity by combining the stored key and data.
*/
public Object entryToObject(TupleInput keyInput, Object dataInput) {
String number = keyInput.readString();
SupplierData data = (SupplierData) dataInput;
return new Supplier(number, data.getName(),
data.getStatus(), data.getCity());
}
示例7: entryToObject
import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
public Object entryToObject(TupleInput input) {
return input.readString();
}
示例8: unmarshalEntry
import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
public void unmarshalEntry(TupleInput keyInput) {
this.partNumber = keyInput.readString();
this.supplierNumber = keyInput.readString();
}
示例9: unmarshalKey
import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
public void unmarshalKey(TupleInput keyInput) {
this.partNumber = keyInput.readString();
this.supplierNumber = keyInput.readString();
}
示例10: deserialize
import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
/** Serializes from a TupleInput after retrieving from storage. */
public static NameIdPair deserialize(TupleInput buffer) {
return new NameIdPair(buffer.readString(), buffer.readInt());
}
示例11: unmarshalPrimaryKey
import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
public void unmarshalPrimaryKey(TupleInput keyInput) {
this.partNumber = keyInput.readString();
this.supplierNumber = keyInput.readString();
}
示例12: unmarshalPrimaryKey
import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
public void unmarshalPrimaryKey(TupleInput keyInput) {
primaryKey = keyInput.readString();
}
示例13: unmarshalKey
import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
public void unmarshalKey(TupleInput keyInput) {
this.number = keyInput.readString();
}
示例14: unmarshalEntry
import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
public void unmarshalEntry(TupleInput keyInput) {
this.number = keyInput.readString();
}
示例15: unmarshalPrimaryKey
import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
public void unmarshalPrimaryKey(TupleInput keyInput) {
this.number = keyInput.readString();
}