Code example for ObjectInputStream

Methods: readIntreadLongreadObject

0
		oos.writeObject(this.hashedSecret);
		oos.writeInt(this.numReplica);
	} 
 
	public void decodeContents(ObjectInputStream ois) throws IOException, ClassNotFoundException {
		this.requests = (Memcached.PutRequest[])ois.readObject();
		this.ttl = ois.readLong();
		this.hashedSecret = (ByteArray)ois.readObject();
		this.numReplica = ois.readInt();
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE