public String toString(){
  StringBuffer result=new StringBuffer();
  result.append('[');
  for (int i=0; i < chars.length; i+=2) {
    if (chars[i] == chars[i + 1]) {
      result.append("0x");
      result.append(Integer.toHexString(chars[i]));
    }
 else {
      result.append("0x");
      result.append(Integer.toHexString(chars[i]));
      result.append("-0x");
      result.append(Integer.toHexString(chars[i + 1]));
    }
  }
  result.append(']');
  return result.toString();
}

public String toString ( ) { StringBuffer result = new StringBuffer ( ) ; result . append ( '[' ) ; for ( int i = 0 ; i < chars . length ; i += 2 ) { if ( chars [ i ] == chars [ i + 1 ] ) { result . append ( "0x" ) ; result . append ( Integer . toHexString ( chars [ i ] ) ) ; } else { result . append ( "0x" ) ; result . append ( Integer . toHexString ( chars [ i ] ) ) ; result . append ( "-0x" ) ; result . append ( Integer . toHexString ( chars [ i + 1 ] ) ) ; } } result . append ( ']' ) ; return result . toString ( ) ; }
returns a textual representation of this charset . if the result of calling this function is passed to charset . parsestring ( ) , it will produce another charset that is equal to this one .
