Top Fields Constructors Methods
org.jcodings

public abstract Class ISOEncoding

extends CaseFoldMapEncoding
Class Inheritance
Known Direct Subclasses
org.jcodings.specific.ISO8859_7Encoding, org.jcodings.specific.ISO8859_10Encoding, org.jcodings.specific.ISO8859_11Encoding, org.jcodings.specific.ISO8859_13Encoding, org.jcodings.specific.ISO8859_14Encoding, org.jcodings.specific.ISO8859_15Encoding, org.jcodings.specific.ISO8859_16Encoding, org.jcodings.specific.ISO8859_1Encoding, org.jcodings.specific.ISO8859_2Encoding, org.jcodings.specific.ISO8859_3Encoding, org.jcodings.specific.ISO8859_4Encoding, org.jcodings.specific.ISO8859_5Encoding, org.jcodings.specific.ISO8859_6Encoding, org.jcodings.specific.ISO8859_8Encoding, org.jcodings.specific.ISO8859_9Encoding

Field Summary

Modifier and TypeField and Description
public static int
Inherited from org.jcodings.CaseFoldMapEncoding:
CaseFoldMapfoldFlagSS

Constructor Summary

AccessConstructor and Description
protected
ISOEncoding(String name, short[] CTypeTable, byte[] LowerCaseTable, int[][] CaseFoldMap)

protected
ISOEncoding(String name, short[] CTypeTable, byte[] LowerCaseTable, int[][] CaseFoldMap, boolean foldFlag)

Method Summary

Modifier and TypeMethod and Description
public String
getCharsetName()

Overrides org.jcodings.Encoding.getCharsetName.

The name of the equivalent Java Charset for this encoding.
public boolean
isCodeCType(int
a code point of a character
code
,
int
a character type to check against Oniguruma equivalent: is_code_ctype
ctype
)

Overrides org.jcodings.CaseFoldMapEncoding.isCodeCType.

Perform a check whether given code is of given character type (e.g. used by isWord(someByte) and similar methods)
public int
mbcCaseFold(int
case fold flag
flag
,
byte[] bytes, IntHolder
an IntHolder that points at character head
pp
,
int end, byte[]
a buffer where to extract case folded character Oniguruma equivalent: mbc_case_fold
lower
)

Overrides org.jcodings.AbstractEncoding.mbcCaseFold.

iso_*_mbc_case_fold
Inherited from org.jcodings.CaseFoldMapEncoding:
applyAllCaseFoldapplyAllCaseFoldWithMapcaseFoldCodesByStringgetCaseFoldCodesByStringWithMap

Field Detail

SHARP_sback to summary
public static int SHARP_s

Constructor Detail

ISOEncodingback to summary
protected ISOEncoding(String name, short[] CTypeTable, byte[] LowerCaseTable, int[][] CaseFoldMap)
ISOEncodingback to summary
protected ISOEncoding(String name, short[] CTypeTable, byte[] LowerCaseTable, int[][] CaseFoldMap, boolean foldFlag)

Method Detail

getCharsetNameback to summary
public String getCharsetName()

Overrides org.jcodings.Encoding.getCharsetName.

Doc from org.jcodings.Encoding.getCharsetName.

The name of the equivalent Java Charset for this encoding. Defaults to the name of the encoding. Subclasses can override this to provide a different name.

Returns:String

the name of the equivalent Java Charset for this encoding

Annotations
@Override
isCodeCTypeback to summary
public boolean isCodeCType(int code, int ctype)

Overrides org.jcodings.CaseFoldMapEncoding.isCodeCType.

Doc from org.jcodings.Encoding.isCodeCType.

Perform a check whether given code is of given character type (e.g. used by isWord(someByte) and similar methods)

Parameters
code:int

a code point of a character

ctype:int

a character type to check against Oniguruma equivalent: is_code_ctype

Annotations
@Override
mbcCaseFoldback to summary
public int mbcCaseFold(int flag, byte[] bytes, IntHolder pp, int end, byte[] lower)

Overrides org.jcodings.AbstractEncoding.mbcCaseFold.

iso_*_mbc_case_fold

Parameters
flag:int

Doc from org.jcodings.Encoding.mbcCaseFold.

case fold flag

pp:IntHolder

Doc from org.jcodings.Encoding.mbcCaseFold.

an IntHolder that points at character head

lower:byte[]

Doc from org.jcodings.Encoding.mbcCaseFold.

a buffer where to extract case folded character Oniguruma equivalent: mbc_case_fold

Annotations
@Override