| Modifier and Type | Field and Description |
|---|---|
private int |
code |
private org.jcodings.Encoding |
encoding |
private java.lang.String |
encodingName |
private java.lang.String |
kcode |
| Modifier and Type | Method and Description |
|---|---|
int |
bits() |
static KCode |
create(Ruby runtime,
java.lang.String lang) |
static KCode |
fromBits(int bits) |
org.jcodings.Encoding |
getEncoding() |
java.lang.String |
getKCode() |
IRubyObject |
kcode(Ruby runtime) |
java.lang.String |
toString() |
static KCode |
valueOf(java.lang.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
private final java.lang.String kcode
private final java.lang.String encodingName
private final int code
private volatile org.jcodings.Encoding encoding
public static KCode[] values()
for (KCode c : KCode.values()) System.out.println(c);
public static KCode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic IRubyObject kcode(Ruby runtime)
public java.lang.String getKCode()
public int bits()
public static KCode fromBits(int bits)
public org.jcodings.Encoding getEncoding()
public java.lang.String toString()
toString in class java.lang.Enum<KCode>