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

@param in  the data to read, not null