public class FileAction extends Object
| Constructor and Description |
|---|
FileAction() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
close(Closeable closeable) |
static File |
getFile(Class classPathProvider,
String resource) |
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) |
public static void handleEntity(File targetFile, org.apache.http.HttpEntity entity) throws IOException
IOExceptionpublic static String getMd5(File file) throws IOException
IOExceptionprotected static void close(Closeable closeable) throws IOException
IOExceptionpublic static List<FileReference> listFiles(File root)
public static List<FileReference> listFiles(File root, String[] ignoreFilters)
protected static void listFiles(List<FileReference> files, List<String> path, File directoryFile, String[] ignoreFilters)
public static File getFile(Class classPathProvider, String resource) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionpublic static File getFile(String resource) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionCopyright © 2012-2017 42 BV. All Rights Reserved.