org.javaswift.joss.util
Class FileAction

java.lang.Object
  extended by org.javaswift.joss.util.FileAction

public class FileAction
extends Object


Constructor Summary
FileAction()
           
 
Method Summary
protected static void close(Closeable closeable)
           
static File getFile(String resource)
           
static String getMd5(File file)
           
protected static List<String> getPath(List<String> currentPath, String extension)
           
static void handleEntity(File targetFile, org.apache.http.HttpEntity entity)
           
protected static boolean ignore(List<String> pathAndFile, String[] ignoreFilters)
           
static List<FileReference> listFiles(File root)
           
static List<FileReference> listFiles(File root, String[] ignoreFilters)
           
protected static void listFiles(List<FileReference> files, List<String> path, File directoryFile, String[] ignoreFilters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileAction

public FileAction()
Method Detail

handleEntity

public static void handleEntity(File targetFile,
                                org.apache.http.HttpEntity entity)
                         throws IOException
Throws:
IOException

getMd5

public static String getMd5(File file)
                     throws IOException
Throws:
IOException

close

protected static void close(Closeable closeable)
                     throws IOException
Throws:
IOException

listFiles

public static List<FileReference> listFiles(File root)

listFiles

public static List<FileReference> listFiles(File root,
                                            String[] ignoreFilters)

listFiles

protected static void listFiles(List<FileReference> files,
                                List<String> path,
                                File directoryFile,
                                String[] ignoreFilters)

ignore

protected static boolean ignore(List<String> pathAndFile,
                                String[] ignoreFilters)

getPath

protected static List<String> getPath(List<String> currentPath,
                                      String extension)

getFile

public static File getFile(String resource)
                    throws IOException,
                           URISyntaxException
Throws:
IOException
URISyntaxException


Copyright © 2012-2014 42 BV. All Rights Reserved.