Code example for ObjectInput

Methods: readBooleanreadIntreadUTFreadObject

0
   // Keeping this here for now in case I come back to it. 
   public Player() { } 
   public void readExternal(ObjectInput input) throws IOException,
   ClassNotFoundException { 
 
      mWhiteHand = (CardSet)input.readObject();
      mName = input.readUTF();
      mPointTotal = input.readInt();
      mComboInProgress = (Combo)input.readObject();
      mHasPickedWhite = input.readBoolean();
      mIsAI = input.readBoolean();
      mIsLeader = input.readBoolean();
      mLastWinText = input.readUTF();
   } 
 
   public void writeExternal(ObjectOutput output) throws IOException {
      output.writeObject(mWhiteHand);
      output.writeUTF(mName);
      output.writeInt(mPointTotal);
      output.writeObject(mComboInProgress);
Contextual code suggestions in your IDE  Get Codota for Java