Class UtfHelpper


  • public final class UtfHelpper
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static byte[] getStringInUtf8​(java.lang.String str)  
      static void writeByte​(java.lang.String str, java.io.OutputStream out, java.util.Map<java.lang.String,​byte[]> cache)  
      static void writeCharToUtf8​(char c, java.io.OutputStream out)
      Deprecated.
      static void writeCodePointToUtf8​(int c, java.io.OutputStream out)  
      static void writeStringToUtf8​(java.lang.String str, java.io.OutputStream out)  
      • Methods inherited from class java.lang.Object

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

      • writeByte

        public static void writeByte​(java.lang.String str,
                                     java.io.OutputStream out,
                                     java.util.Map<java.lang.String,​byte[]> cache)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • writeCodePointToUtf8

        public static void writeCodePointToUtf8​(int c,
                                                java.io.OutputStream out)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • writeCharToUtf8

        @Deprecated
        public static void writeCharToUtf8​(char c,
                                           java.io.OutputStream out)
                                    throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • writeStringToUtf8

        public static void writeStringToUtf8​(java.lang.String str,
                                             java.io.OutputStream out)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • getStringInUtf8

        public static byte[] getStringInUtf8​(java.lang.String str)