Class B2CConverter


  • public class B2CConverter
    extends Object
    Efficient conversion of bytes to character . Now uses NIO directly
    • Constructor Detail

      • B2CConverter

        protected B2CConverter()
      • B2CConverter

        public B2CConverter​(String encoding)
                     throws IOException
        Create a converter, with bytes going to a byte buffer
        Throws:
        IOException
    • Method Detail

      • init

        protected void init​(String encoding)
      • recycle

        public void recycle()
        Reset the internal state, empty the buffers. The encoding remain in effect, the internal buffers remain allocated.
      • convertASCII

        public static void convertASCII​(MessageBytes mb)
        Character conversion of a US-ASCII MessageBytes.