Class FileUtil


  • public class FileUtil
    extends java.lang.Object
    INTERNAL: Purpose: Provide common file I/O utilities
    Author:
    Steven Vo
    Since:
    TopLink 4.5
    • Constructor Summary

      Constructors 
      Constructor Description
      FileUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void copy​(java.io.InputStream in, java.io.OutputStream out)  
      static void copy​(java.lang.String inputPath, java.lang.String outputPath, java.lang.String[] filteredExtensions)  
      static void createJarFromDirectory​(java.lang.String jarFileName, java.lang.String jarDirectory, java.lang.String[] filtertedExtensions)  
      static void delete​(java.io.File file)  
      static java.util.Vector findFiles​(java.lang.String path, java.lang.String[] filteredExtensions)  
      • Methods inherited from class java.lang.Object

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

      • FileUtil

        public FileUtil()
    • Method Detail

      • copy

        public static void copy​(java.lang.String inputPath,
                                java.lang.String outputPath,
                                java.lang.String[] filteredExtensions)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • copy

        public static void copy​(java.io.InputStream in,
                                java.io.OutputStream out)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • createJarFromDirectory

        public static void createJarFromDirectory​(java.lang.String jarFileName,
                                                  java.lang.String jarDirectory,
                                                  java.lang.String[] filtertedExtensions)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • findFiles

        public static java.util.Vector findFiles​(java.lang.String path,
                                                 java.lang.String[] filteredExtensions)
      • delete

        public static void delete​(java.io.File file)