本文整理汇总了Java中com.hazelcast.nio.ObjectDataInput.readByteArray方法的典型用法代码示例。如果您正苦于以下问题:Java ObjectDataInput.readByteArray方法的具体用法?Java ObjectDataInput.readByteArray怎么用?Java ObjectDataInput.readByteArray使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.hazelcast.nio.ObjectDataInput
的用法示例。
在下文中一共展示了ObjectDataInput.readByteArray方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readData
import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public void readData(ObjectDataInput in) throws IOException {
id = in.readInt();
topicName = in.readUTF();
publisherId = in.readUTF();
message = in.readByteArray();
int rawInt = in.readInt();
qos = rawInt != Byte.MIN_VALUE ? MqttQoS.valueOf(rawInt) : null;
isRetain = in.readBoolean();
}
示例2: readData
import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public final void readData(ObjectDataInput in) throws IOException {
setCorrelationId(in.readUTF());
setGenTimestamp(in.readLong());
setHeader(in.readUTF());
bytes = in.readByteArray();
}
示例3: readData
import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public void readData(ObjectDataInput in) throws IOException
{
id = in.readLong();
topic = in.readUTF();
type = in.readUTF();
timestamp = in.readLong();
payload = in.readByteArray();
doReadData(in);
}
示例4: readData
import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public void readData(ObjectDataInput in) throws IOException {
repo = SchemaRepositoryImpl.getRepository();
InternalSerializationService ss = getSerializationService();
byte[] data = in.readByteArray();
byte[] data2 = IOUtil.decompress(data);
//logger.info("readData; compressed size: {}; decompressed size: {}", data.length, data2.length);
ObjectDataInput odi = ss.createObjectDataInput(data2);
super.readData(odi);
}
示例5: readData
import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public void readData(ObjectDataInput in) throws IOException {
userName = in.readUTF();
password = in.readByteArray();
}
示例6: readData
import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public void readData(ObjectDataInput in) throws IOException {
this.bytes = in.readByteArray();
}