Class Ascii


  • public class Ascii
    extends java.lang.Object
    Author:
    Simon Thoresen Hult
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Ascii.Decoder  
      static class  Ascii.Encoder  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static char ESCAPE_CHAR  
    • Constructor Summary

      Constructors 
      Constructor Description
      Ascii()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String decode​(java.lang.String str, java.nio.charset.Charset charset)  
      static java.lang.String encode​(java.lang.String str, java.nio.charset.Charset charset, int... requiresEscape)  
      static Ascii.Decoder newDecoder​(java.nio.charset.Charset charset)  
      static Ascii.Encoder newEncoder​(java.nio.charset.Charset charset, int... requiresEscape)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Ascii

        public Ascii()
    • Method Detail

      • encode

        public static java.lang.String encode​(java.lang.String str,
                                              java.nio.charset.Charset charset,
                                              int... requiresEscape)
      • decode

        public static java.lang.String decode​(java.lang.String str,
                                              java.nio.charset.Charset charset)
      • newEncoder

        public static Ascii.Encoder newEncoder​(java.nio.charset.Charset charset,
                                               int... requiresEscape)
      • newDecoder

        public static Ascii.Decoder newDecoder​(java.nio.charset.Charset charset)