Class UTF8


  • public class UTF8
    extends java.lang.Object
    Author:
    pugh
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.nio.charset.Charset charset  
    • Constructor Summary

      Constructors 
      Constructor Description
      UTF8()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.BufferedReader bufferedReader​(java.io.InputStream in)  
      static java.io.BufferedWriter bufferedWriter​(java.io.File fileName)  
      static java.io.BufferedWriter bufferedWriter​(java.lang.String fileName)  
      static java.io.Reader fileReader​(java.io.File fileName)  
      static java.io.Reader fileReader​(java.lang.String fileName)  
      static java.io.Writer fileWriter​(java.io.File fileName)  
      static java.io.Writer fileWriter​(java.lang.String fileName)  
      static byte[] getBytes​(java.lang.String s)  
      static java.io.PrintStream printStream​(java.io.OutputStream out)  
      static java.io.PrintStream printStream​(java.io.OutputStream out, boolean autoflush)  
      static java.io.PrintWriter printWriter​(java.io.File fileName)  
      static java.io.PrintWriter printWriter​(java.io.PrintStream printStream)  
      static java.io.PrintWriter printWriter​(java.io.PrintStream printStream, boolean autoflush)  
      static java.io.PrintWriter printWriter​(java.lang.String fileName)  
      static java.io.Reader reader​(java.io.InputStream in)  
      static java.io.Writer writer​(java.io.OutputStream out)  
      • Methods inherited from class java.lang.Object

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

      • charset

        public static final java.nio.charset.Charset charset
    • Constructor Detail

      • UTF8

        public UTF8()
    • Method Detail

      • printStream

        public static java.io.PrintStream printStream​(java.io.OutputStream out)
      • printStream

        public static java.io.PrintStream printStream​(java.io.OutputStream out,
                                                      boolean autoflush)
      • writer

        public static java.io.Writer writer​(java.io.OutputStream out)
      • fileWriter

        public static java.io.Writer fileWriter​(java.io.File fileName)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • bufferedWriter

        public static java.io.BufferedWriter bufferedWriter​(java.io.File fileName)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • printWriter

        public static java.io.PrintWriter printWriter​(java.io.File fileName)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • printWriter

        public static java.io.PrintWriter printWriter​(java.io.PrintStream printStream)
      • printWriter

        public static java.io.PrintWriter printWriter​(java.io.PrintStream printStream,
                                                      boolean autoflush)
      • fileWriter

        public static java.io.Writer fileWriter​(java.lang.String fileName)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • bufferedWriter

        public static java.io.BufferedWriter bufferedWriter​(java.lang.String fileName)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • fileReader

        public static java.io.Reader fileReader​(java.lang.String fileName)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • fileReader

        public static java.io.Reader fileReader​(java.io.File fileName)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • printWriter

        public static java.io.PrintWriter printWriter​(java.lang.String fileName)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • reader

        public static java.io.Reader reader​(@WillCloseWhenClosed
                                            java.io.InputStream in)
      • bufferedReader

        public static java.io.BufferedReader bufferedReader​(@WillCloseWhenClosed
                                                            java.io.InputStream in)
      • getBytes

        public static byte[] getBytes​(java.lang.String s)