Code example for ObjectOutput

Methods: writeByte, writeFloat

0
    } 
 
 
    public void writeExternal( ObjectOutput out ) throws IOException {
        // VERSION 
        out.writeByte( 0 );
 
        // LOAD FACTOR 
        out.writeFloat( _loadFactor );
 
        // AUTO COMPACTION LOAD FACTOR 
        out.writeFloat( _autoCompactionFactor );
    } 
 
 
    public void readExternal( ObjectInput in )
            throws IOException, ClassNotFoundException { 
 
        // VERSION 
        in.readByte();