Class FileUtils


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

      Constructors 
      Constructor Description
      FileUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long copy​(java.io.InputStream input, java.io.OutputStream output, int bufferSize)  
      static long copyLarge​(java.io.InputStream input, java.io.OutputStream output)  
      static long copyLarge​(java.io.InputStream input, java.io.OutputStream output, byte[] buffer)  
      static void createParentDirs​(java.io.File file)  
      static int indexOfExtension​(java.lang.String filename)  
      static int indexOfLastSeparator​(java.lang.String filename)  
      static java.lang.String removeExtension​(java.lang.String filename)  
      • Methods inherited from class java.lang.Object

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

      • FileUtils

        public FileUtils()
    • Method Detail

      • indexOfLastSeparator

        public static int indexOfLastSeparator​(java.lang.String filename)
      • indexOfExtension

        public static int indexOfExtension​(java.lang.String filename)
      • removeExtension

        public static java.lang.String removeExtension​(java.lang.String filename)
      • createParentDirs

        public static void createParentDirs​(java.io.File file)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • copy

        public static long copy​(java.io.InputStream input,
                                java.io.OutputStream output,
                                int bufferSize)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • copyLarge

        public static long copyLarge​(java.io.InputStream input,
                                     java.io.OutputStream output)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • copyLarge

        public static long copyLarge​(java.io.InputStream input,
                                     java.io.OutputStream output,
                                     byte[] buffer)
                              throws java.io.IOException
        Throws:
        java.io.IOException