Package org.jcodings.specific
Class Windows_31JEncoding
java.lang.Object
org.jcodings.Encoding
org.jcodings.AbstractEncoding
org.jcodings.MultiByteEncoding
org.jcodings.CanBeTrailTableEncoding
org.jcodings.specific.BaseSJISEncoding
org.jcodings.specific.Windows_31JEncoding
- All Implemented Interfaces:
Cloneable
-
Field Summary
FieldsFields inherited from class org.jcodings.specific.BaseSJISEncoding
SJIS_CAN_BE_TRAIL_TABLE, SjisEncLen
Fields inherited from class org.jcodings.CanBeTrailTableEncoding
CanBeTrailTable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe name of the equivalent Java Charset for this encoding.int
length
(byte[] bytes, int p, int end) Returns character length given stream, character position and stream end returns1
for singlebyte encodings or performs sanity validations for multibyte ones and returns the character length, missing characters in the stream otherwiseMethods inherited from class org.jcodings.specific.BaseSJISEncoding
codeToMbc, codeToMbcLength, ctypeCodeRange, isCodeCType, mbcCaseFold, mbcToCode, propertyNameToCType
Methods inherited from class org.jcodings.CanBeTrailTableEncoding
isReverseMatchAllowed, leftAdjustCharHead
Methods inherited from class org.jcodings.MultiByteEncoding
caseMap, isInRange, length, lengthForTwoUptoFour, mb2CodeToMbc, mb2CodeToMbcLength, mb2IsCodeCType, mb4CodeToMbc, mb4CodeToMbcLength, mb4IsCodeCType, mbnMbcCaseFold, mbnMbcToCode, missing, missing, safeLengthForUptoFour, safeLengthForUptoThree, safeLengthForUptoTwo, strCodeAt, strLength
Methods inherited from class org.jcodings.AbstractEncoding
applyAllCaseFold, asciiApplyAllCaseFold, asciiCaseFoldCodesByString, asciiMbcCaseFold, caseFoldCodesByString, isCodeCTypeInternal, isNewLine
Methods inherited from class org.jcodings.Encoding
asciiToLower, asciiToUpper, digitVal, equals, getCharset, getIndex, getName, hashCode, isAlnum, isAlpha, isAscii, isAscii, isAsciiCompatible, isBlank, isCntrl, isDigit, isDummy, isFixedWidth, isGraph, isLower, isMbcAscii, isMbcCrnl, isMbcHead, isMbcWord, isNewLine, isPrint, isPunct, isSbWord, isSingleByte, isSpace, isUnicode, isUpper, isUTF8, isWord, isWordGraphPrint, isXDigit, load, load, maxLength, maxLengthDistance, mbcodeStartPosition, minLength, odigitVal, prevCharHead, rightAdjustCharHead, rightAdjustCharHeadWithPrev, setDummy, setName, setName, step, stepBack, strByteLengthNull, strLengthNull, strNCmp, toLowerCaseTable, toString, xdigitVal
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
Windows_31JEncoding
protected Windows_31JEncoding()
-
-
Method Details
-
getCharsetName
Description copied from class:Encoding
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.- Overrides:
getCharsetName
in classBaseSJISEncoding
- Returns:
- the name of the equivalent Java Charset for this encoding
-
length
public int length(byte[] bytes, int p, int end) Description copied from class:Encoding
Returns character length given stream, character position and stream end returns1
for singlebyte encodings or performs sanity validations for multibyte ones and returns the character length, missing characters in the stream otherwise
-