Modifier and Type | Method and Description |
---|---|
int |
bits() |
static KCode |
create(java.lang.String lang) |
static KCode |
fromBits(int bits) |
org.jcodings.Encoding |
getEncoding() |
java.lang.String |
getKCode() |
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
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 static KCode create(java.lang.String lang)
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>
Copyright © 2001-2019 JRuby. All Rights Reserved.