| Modifier and Type | Field and Description |
|---|---|
| public static final USASCIIEncoding |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public String | getCharsetName()
Overrides org. |
| public boolean | isCodeCType(int
a code point of a character code, int a character type to check against
Oniguruma equivalent: ctype)is_code_ctypeImplements abstract org. |
| public int | length(byte[] bytes, int p, int end)
Overrides org. 1 for singlebyte encodings or performs sanity validations for multibyte ones
and returns the character length, missing characters in the stream otherwise
|
| public final byte[] | toLowerCaseTable()
Overrides org. null
Used for fast case insensitive matching for some singlebyte encodings
|
| INSTANCE | back to summary |
|---|---|
| public static final USASCIIEncoding INSTANCE | |
| USASCIIEncoding | back to summary |
|---|---|
| protected USASCIIEncoding() | |
| getCharsetName | back to summary |
|---|---|
| public String getCharsetName() Overrides org. Doc from org. 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. | |
| isCodeCType | back to summary |
|---|---|
| public boolean isCodeCType(int code, int ctype) Implements abstract org. ascii_is_code_ctype / ONIGENC_IS_ASCII_CODE_CTYPE
| |
| length | back to summary |
|---|---|
| public int length(byte[] bytes, int p, int end) Overrides org. Doc from org. Returns character length given stream, character position and stream end
returns
| |
| toLowerCaseTable | back to summary |
|---|---|
| public final byte[] toLowerCaseTable() Overrides org. Doc from org. Returns lower case table if it's safe to use it directly, otherwise
| |