Class PerforceShiftJISCharset

  • All Implemented Interfaces:
    java.lang.Comparable<java.nio.charset.Charset>

    public class PerforceShiftJISCharset
    extends java.nio.charset.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 
      Modifier and Type Field Description
      static boolean UNICODE_MAPPING  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected PerforceShiftJISCharset​(java.lang.String canonical, java.lang.String[] aliases)
      Constructor for the P4ShiftJIS charset.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(java.nio.charset.Charset cs)
      Tells whether or not this charset contains the given charset.
      java.nio.charset.CharsetDecoder newDecoder()
      Called by users of this Charset to obtain a decoder.
      java.nio.charset.CharsetEncoder newEncoder()
      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
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • UNICODE_MAPPING

        public static final boolean UNICODE_MAPPING
    • Constructor Detail

      • PerforceShiftJISCharset

        protected PerforceShiftJISCharset​(java.lang.String canonical,
                                          java.lang.String[] aliases)
        Constructor for the P4ShiftJIS charset. Call the superclass constructor to pass along the name and aliases.
        Parameters:
        canonical - canonical
        aliases - aliases
    • Method Detail

      • newEncoder

        public java.nio.charset.CharsetEncoder newEncoder()
        Called by users of this Charset to obtain an encoder.
        Specified by:
        newEncoder in class java.nio.charset.Charset
      • newDecoder

        public java.nio.charset.CharsetDecoder newDecoder()
        Called by users of this Charset to obtain a decoder.
        Specified by:
        newDecoder in class java.nio.charset.Charset
      • contains

        public boolean contains​(java.nio.charset.Charset cs)
        Tells whether or not this charset contains the given charset.
        Specified by:
        contains in class java.nio.charset.Charset