List of usage examples for java.io ObjectInput readByte
byte readByte() throws IOException;
From source file:com.delphix.session.util.ProtocolVersion.java
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { major = in.readByte() & 0xff; minor = in.readByte() & 0xff;//from w w w . j a v a 2s. c o m revision = in.readByte() & 0xff; }
From source file:org.openspaces.persistency.cassandra.meta.ColumnFamilyMetadata.java
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { in.readByte(); // serial_ver (currently, unused) typeDescriptorData = IOUtils.readObject(in); topLevelTypeNode = IOUtils.readObject(in); columnFamilyName = IOUtils.readString(in); initFieldsFromTopLevelTypeNode();// ww w . j a v a 2 s . c o m }
From source file:com.delphix.session.impl.frame.SerialNumber.java
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { serialBits = in.readByte() & 0xff; // Unsigned byte if (serialBits < Byte.SIZE) { serialNumber = in.readByte();//w ww . j av a2 s . co m } else if (serialBits < Short.SIZE) { serialNumber = in.readShort(); } else if (serialBits < Integer.SIZE) { serialNumber = in.readInt(); } else { serialNumber = in.readLong(); } }
From source file:com.conwet.silbops.msg.UnsubscribeMsg.java
@Override public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException { subscription = new Subscription(); subscription.readExternal(input);/*from w w w .j a v a 2s . co m*/ uncovered = new HashSet<>(); int num = input.readByte(); for (int i = 0; i < num; i++) { Subscription uncov = new Subscription(); uncov.readExternal(input); uncovered.add(uncov); } }
From source file:com.aol.advertising.qiao.util.cache.ValueWrapper.java
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { this.insertionTime = in.readLong(); this.lastAccessTime = in.readLong(); this.timeout = in.readInt(); this.isModified = in.readByte(); this.value = (V) in.readObject(); }
From source file:com.conwet.silbops.msg.UnadvertiseMsg.java
@Override public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException { advertise = new Advertise(); advertise.readExternal(input);//from w w w. ja va 2 s .co m context = new Advertise(); context.readExternal(input); uncovered = new HashSet<>(); int num = input.readByte(); for (int i = 0; i < num; i++) { Advertise uncov = new Advertise(); uncov.readExternal(input); this.uncovered.add(uncov); } }
From source file:gnu.trove.map.custom_hash.TObjectByteCustomHashMap.java
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { // VERSION/* ww w.j a va 2 s.c o m*/ in.readByte(); // SUPER super.readExternal(in); // STRATEGY strategy = (HashingStrategy<K>) in.readObject(); // NO_ENTRY_VALUE no_entry_value = in.readByte(); // NUMBER OF ENTRIES int size = in.readInt(); setUp(size); // ENTRIES while (size-- > 0) { //noinspection unchecked K key = (K) in.readObject(); byte val = in.readByte(); put(key, val); } }
From source file:gnu.trove.map.custom_hash.TObjectCharCustomHashMap.java
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { // VERSION//from w w w . j ava 2 s. c om in.readByte(); // SUPER super.readExternal(in); // STRATEGY strategy = (HashingStrategy<K>) in.readObject(); // NO_ENTRY_VALUE no_entry_value = in.readChar(); // NUMBER OF ENTRIES int size = in.readInt(); setUp(size); // ENTRIES while (size-- > 0) { //noinspection unchecked K key = (K) in.readObject(); char val = in.readChar(); put(key, val); } }
From source file:gnu.trove.map.custom_hash.TObjectDoubleCustomHashMap.java
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { // VERSION//w w w . j a v a 2s . c om in.readByte(); // SUPER super.readExternal(in); // STRATEGY strategy = (HashingStrategy<K>) in.readObject(); // NO_ENTRY_VALUE no_entry_value = in.readDouble(); // NUMBER OF ENTRIES int size = in.readInt(); setUp(size); // ENTRIES while (size-- > 0) { //noinspection unchecked K key = (K) in.readObject(); double val = in.readDouble(); put(key, val); } }
From source file:gnu.trove.map.custom_hash.TObjectFloatCustomHashMap.java
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { // VERSION/*from www.j a va 2 s . c o m*/ in.readByte(); // SUPER super.readExternal(in); // STRATEGY strategy = (HashingStrategy<K>) in.readObject(); // NO_ENTRY_VALUE no_entry_value = in.readFloat(); // NUMBER OF ENTRIES int size = in.readInt(); setUp(size); // ENTRIES while (size-- > 0) { //noinspection unchecked K key = (K) in.readObject(); float val = in.readFloat(); put(key, val); } }