private Integer [ ] unicodeToWinAnsi ( int unicode ) { List ret = new java . util . ArrayList ( ) ; for ( int i = 32 ; i < Glyphs . WINANSI_ENCODING . length ; i ++ ) { if ( unicode == Glyphs . WINANSI_ENCODING [ i ] ) { ret . add ( new Integer ( i ) ) ; } } return ( Integer [ ] ) ret . toArray ( new Integer [ 0 ] ) ; }
Helper methods they are not very efficient but that really doesn t matter ...