public enum KCode extends Enum<KCode>
| Modifier and Type | Method and Description | 
|---|---|
| int | bits() | 
| static KCode | create(Ruby runtime,
      String lang) | 
| static KCode | fromBits(int bits) | 
| org.jcodings.Encoding | getEncoding() | 
| String | getKCode() | 
| IRubyObject | kcode(Ruby runtime) | 
| String | toString() | 
| static KCode | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static KCode[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final KCode NIL
public static final KCode NONE
public static final KCode UTF8
public static final KCode SJIS
public static final KCode EUC
public static KCode[] values()
for (KCode c : KCode.values()) System.out.println(c);
public static KCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic IRubyObject kcode(Ruby runtime)
public String getKCode()
public int bits()
public static KCode fromBits(int bits)
public org.jcodings.Encoding getEncoding()
Copyright © 2001-2015 JRuby. All Rights Reserved.