private void deserializeScheme ( ObjectInput stream ) throws IOException , ClassNotFoundException { SchemeValues scheme = null ; if ( SERIALIZATION_V2 == getDeserializationVersion ( ) ) { byte [ ] value = readByteArray ( stream ) ; if ( null == value ) { throw new IOException ( "Missing scheme" ) ; } scheme = SchemeValues . find ( value ) ; } else { String value = ( String ) stream . readObject ( ) ; scheme = SchemeValues . find ( value ) ; } setScheme ( scheme ) ; }
Deserialize the scheme information from the input stream .