Package org.jcodings.specific
Class SJISEncoding
- java.lang.Object
-
- org.jcodings.Encoding
-
- org.jcodings.AbstractEncoding
-
- org.jcodings.MultiByteEncoding
-
- org.jcodings.CanBeTrailTableEncoding
-
- org.jcodings.specific.BaseSJISEncoding
-
- org.jcodings.specific.SJISEncoding
-
- All Implemented Interfaces:
java.lang.Cloneable
public final class SJISEncoding extends BaseSJISEncoding
-
-
Field Summary
Fields Modifier and Type Field Description static SJISEncoding
INSTANCE
private static int[][]
SjisTrans
-
Fields inherited from class org.jcodings.specific.BaseSJISEncoding
SJIS_CAN_BE_TRAIL_TABLE, SjisEncLen
-
Fields inherited from class org.jcodings.CanBeTrailTableEncoding
CanBeTrailTable
-
Fields inherited from class org.jcodings.AbstractEncoding
EMPTY_FOLD_CODES
-
Fields inherited from class org.jcodings.Encoding
CHAR_INVALID, charset, hashCode, isAsciiCompatible, isDummy, isFixedWidth, isSingleByte, maxLength, minLength, name, NEW_LINE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SJISEncoding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 otherwise-
Methods inherited from class org.jcodings.specific.BaseSJISEncoding
codeToMbc, codeToMbcLength, ctypeCodeRange, getCharsetName, isCodeCType, mbcCaseFold, mbcToCode, propertyNameToCType
-
Methods inherited from class org.jcodings.CanBeTrailTableEncoding
isReverseMatchAllowed, leftAdjustCharHead
-
Methods inherited from class org.jcodings.MultiByteEncoding
length, lengthForTwoUptoFour, mb2CodeToMbc, mb2CodeToMbcLength, mb2IsCodeCType, mb4CodeToMbc, mb4CodeToMbcLength, mb4IsCodeCType, mbnMbcCaseFold, mbnMbcToCode, missing, missing, safeLengthForUptoFour, safeLengthForUptoFourGreatedThan127, 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, isUpper, isWord, isWordGraphPrint, isXDigit, load, maxLength, maxLengthDistance, mbcodeStartPosition, minLength, odigitVal, prevCharHead, replicate, rightAdjustCharHead, rightAdjustCharHeadWithPrev, setName, setName, step, stepBack, strByteLengthNull, strLengthNull, strNCmp, toLowerCaseTable, toString, xdigitVal
-
-
-
-
Field Detail
-
SjisTrans
private static final int[][] SjisTrans
-
INSTANCE
public static final SJISEncoding INSTANCE
-
-
Method Detail
-
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
-
-