protected void eciProcess() {

        EciMode eci = EciMode.of(content, "ISO8859_1",    3)
                             .or(content, "ISO8859_2",    4)
                             .or(content, "ISO8859_3",    5)
                             .or(content, "ISO8859_4",    6)
                             .or(content, "ISO8859_5",    7)
                             .or(content, "ISO8859_6",    8)
                             .or(content, "ISO8859_7",    9)
                             .or(content, "ISO8859_8",    10)
                             .or(content, "ISO8859_9",    11)
                             .or(content, "ISO8859_10",   12)
                             .or(content, "ISO8859_11",   13)
                             .or(content, "ISO8859_13",   15)
                             .or(content, "ISO8859_14",   16)
                             .or(content, "ISO8859_15",   17)
                             .or(content, "ISO8859_16",   18)
                             .or(content, "Windows_1250", 21)
                             .or(content, "Windows_1251", 22)
                             .or(content, "Windows_1252", 23)
                             .or(content, "Windows_1256", 24)
                             .or(content, "SJIS",         20)
                             .or(content, "UTF8",         26);

        if (EciMode.NONE.equals(eci)) {
            throw new OkapiException("Unable to determine ECI mode.");
        }

        eciMode = eci.mode;
        inputData = toBytes(content, eci.charset);

        encodeInfo += "ECI Mode: " + eci.mode + "\n";
        encodeInfo += "ECI Charset: " + eci.charset.name() + "\n";
    }
protected void eciProcess ( ) { EciMode eci = EciMode . of ( content , "ISO8859_1" , 3 ) . or ( content , "ISO8859_2" , 4 ) . or ( content , "ISO8859_3" , 5 ) . or ( content , "ISO8859_4" , 6 ) . or ( content , "ISO8859_5" , 7 ) . or ( content , "ISO8859_6" , 8 ) . or ( content , "ISO8859_7" , 9 ) . or ( content , "ISO8859_8" , 10 ) . or ( content , "ISO8859_9" , 11 ) . or ( content , "ISO8859_10" , 12 ) . or ( content , "ISO8859_11" , 13 ) . or ( content , "ISO8859_13" , 15 ) . or ( content , "ISO8859_14" , 16 ) . or ( content , "ISO8859_15" , 17 ) . or ( content , "ISO8859_16" , 18 ) . or ( content , "Windows_1250" , 21 ) . or ( content , "Windows_1251" , 22 ) . or ( content , "Windows_1252" , 23 ) . or ( content , "Windows_1256" , 24 ) . or ( content , "SJIS" , 20 ) . or ( content , "UTF8" , 26 ) ; if ( EciMode . NONE . equals ( eci ) ) { throw new OkapiException ( "Unable to determine ECI mode." ) ; } eciMode = eci . mode ; inputData = toBytes ( content , eci . charset ) ; encodeInfo += "ECI Mode: " + eci . mode + "\n" ; encodeInfo += "ECI Charset: " + eci . charset . name ( ) + "\n" ; }
Chooses the ECI mode most suitable for the content of this symbol.