Package com.perforce.p4java.charset
Class PerforceShiftJISCharset
java.lang.Object
java.nio.charset.Charset
com.perforce.p4java.charset.PerforceShiftJISCharset
- All Implemented Interfaces:
Comparable<Charset>
Charset implementation which performs P4ShiftJIS encoding. P4-ShiftJIS
encoding uses the MS932 (Microsoft code page 932) encoding, a superset of
Shift-JIS. Additionally, P4-ShiftJIS applies Perforce specific updates to
characters
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPerforceShiftJISCharset(String canonical, String[] aliases) Constructor for the P4ShiftJIS charset. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTells whether or not this charset contains the given charset.Called by users of this Charset to obtain a decoder.Called by users of this Charset to obtain an encoder.Methods inherited from class java.nio.charset.Charset
aliases, availableCharsets, canEncode, compareTo, decode, defaultCharset, displayName, displayName, encode, encode, equals, forName, hashCode, isRegistered, isSupported, name, toString
-
Field Details
-
UNICODE_MAPPING
public static final boolean UNICODE_MAPPING
-
-
Constructor Details
-
PerforceShiftJISCharset
Constructor for the P4ShiftJIS charset. Call the superclass constructor to pass along the name and aliases.- Parameters:
canonical- canonicalaliases- aliases
-
-
Method Details
-
newEncoder
Called by users of this Charset to obtain an encoder.- Specified by:
newEncoderin classCharset
-
newDecoder
Called by users of this Charset to obtain a decoder.- Specified by:
newDecoderin classCharset
-
contains
Tells whether or not this charset contains the given charset.
-