Class IOTinyUtils


  • public class IOTinyUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      IOTinyUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void cleanDirectory​(java.io.File directory)  
      static long copy​(java.io.Reader input, java.io.Writer output)  
      static void copyFile​(java.lang.String source, java.lang.String target)  
      static void delete​(java.io.File fileOrDir)  
      static java.util.List<java.lang.String> readLines​(java.io.Reader input)  
      static java.lang.String toString​(java.io.InputStream input, java.lang.String encoding)  
      static java.lang.String toString​(java.io.Reader reader)  
      static void writeStringToFile​(java.io.File file, java.lang.String data, java.lang.String encoding)  
      • Methods inherited from class java.lang.Object

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

      • IOTinyUtils

        public IOTinyUtils()
    • Method Detail

      • toString

        public static java.lang.String toString​(java.io.InputStream input,
                                                java.lang.String encoding)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public static java.lang.String toString​(java.io.Reader reader)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • copy

        public static long copy​(java.io.Reader input,
                                java.io.Writer output)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • readLines

        public static java.util.List<java.lang.String> readLines​(java.io.Reader input)
                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • copyFile

        public static void copyFile​(java.lang.String source,
                                    java.lang.String target)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • delete

        public static void delete​(java.io.File fileOrDir)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • cleanDirectory

        public static void cleanDirectory​(java.io.File directory)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • writeStringToFile

        public static void writeStringToFile​(java.io.File file,
                                             java.lang.String data,
                                             java.lang.String encoding)
                                      throws java.io.IOException
        Throws:
        java.io.IOException