Class Files


  • public class Files
    extends java.lang.Object
    Some utilities for work with files and directories.

    Author:
    Javier Paniza
    • Constructor Summary

      Constructors 
      Constructor Description
      Files()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void createFileIfNotExist​(java.lang.String fileName)  
      static boolean deleteDir​(java.io.File dir)  
      static boolean deleteDir​(java.lang.String dirURL)  
      static java.lang.String getOpenXavaBaseDir()  
      static boolean isImage​(java.lang.String fileName)  
      • Methods inherited from class java.lang.Object

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

      • Files

        public Files()
    • Method Detail

      • isImage

        public static boolean isImage​(java.lang.String fileName)
        Since:
        6.6
      • deleteDir

        public static boolean deleteDir​(java.lang.String dirURL)
      • deleteDir

        public static boolean deleteDir​(java.io.File dir)
      • createFileIfNotExist

        public static void createFileIfNotExist​(java.lang.String fileName)
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
        Since:
        5.9
      • getOpenXavaBaseDir

        public static java.lang.String getOpenXavaBaseDir()
        Since:
        5.9