public void writeObject(Object obj, Class... possibles) throws IOException {
        if ( isCrossPlatform ) {
            writeObjectInternal(obj, null); // not supported cross platform
            return;
        }
        if ( possibles != null && possibles.length > 1 ) {
            for (int i = 0; i < possibles.length; i++) {
                Class possible = possibles[i];
                getCodec().registerClass(possible);
            }
        }
        writeObjectInternal(obj, null, possibles);
    }
public void writeObject(Object obj, Class... possibles) throws IOException {
        if ( isCrossPlatform ) {
            writeObjectInternal(obj, null); 
            return;
        }
        if ( possibles != null && possibles.length > 1 ) {
            for (int i = 0; i < possibles.length; i++) {
                Class possible = possibles[i];
                getCodec().registerClass(possible);
            }
        }
        writeObjectInternal(obj, null, possibles);
    }
public void writeObject ( Object obj , Class ... possibles ) throws IOException { if ( isCrossPlatform ) { writeObjectInternal ( obj , null ) ; // not supported cross platform return ; } if ( possibles != null && possibles . length > 1 ) { for ( int i = 0 ; i < possibles . length ; i ++ ) { Class possible = possibles [ i ] ; getCodec ( ) . registerClass ( possible ) ; } } writeObjectInternal ( obj , null , possibles ) ; }
///////////////////////////////////////////////////
///////////////////////////////////////////////////