code: public void readExternal(ObjectInput in) throws IOException {
          type = in.readByte();
          object = readInternal(type, in);
      }
docs: Implements the {@code Externalizable} interface to read the object.
  
  @param in  the data to read, not null