Class Files


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

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static void copyFile​(java.io.InputStream from, java.io.File to)
      Deprecated.
      - This method stands deprecated as of TestNG 7.6.0
      static java.lang.String readFile​(java.io.File f)
      Deprecated.
      - This method stands deprecated as of TestNG 7.6.0
      static java.lang.String readFile​(java.io.InputStream is)  
      static java.lang.String streamToString​(java.io.InputStream is)
      Deprecated.
      - This method stands deprecated as of TestNG 7.6.0
      static void writeFile​(java.lang.String string, java.io.File f)
      Deprecated.
      - This method stands deprecated as of TestNG 7.6.0
      • Methods inherited from class java.lang.Object

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

      • readFile

        @Deprecated
        public static java.lang.String readFile​(java.io.File f)
                                         throws java.io.IOException
        Deprecated.
        - This method stands deprecated as of TestNG 7.6.0
        Throws:
        java.io.IOException
      • readFile

        public static java.lang.String readFile​(java.io.InputStream is)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • writeFile

        @Deprecated
        public static void writeFile​(java.lang.String string,
                                     java.io.File f)
                              throws java.io.IOException
        Deprecated.
        - This method stands deprecated as of TestNG 7.6.0
        Throws:
        java.io.IOException
      • copyFile

        @Deprecated
        public static void copyFile​(java.io.InputStream from,
                                    java.io.File to)
                             throws java.io.IOException
        Deprecated.
        - This method stands deprecated as of TestNG 7.6.0
        Throws:
        java.io.IOException
      • streamToString

        @Deprecated
        public static java.lang.String streamToString​(java.io.InputStream is)
                                               throws java.io.IOException
        Deprecated.
        - This method stands deprecated as of TestNG 7.6.0
        Throws:
        java.io.IOException