public final class FileUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getDecompressedFileName(File file) |
static String |
getFileExtension(File file)
Get file extension for a given file
|
static String |
getFileExtension(String fileName) |
static InputStream |
getFileInputStream(File file) |
static String |
getRealFileName(String fileName) |
static boolean |
isBinaryFile(File file)
Check whether a given file is a binary file
|
static boolean |
isFileEmpty(File file) |
static boolean |
isGzipped(File file) |
static boolean |
isZipped(File file) |
static String |
tail(File file,
int numberOfChars) |
public static String DOT
public static String getFileExtension(File file)
file
- given filepublic static boolean isBinaryFile(File file) throws IOException
file
- given file objectIOException
- exception while reading the given filepublic static String tail(File file, int numberOfChars) throws IOException
IOException
public static String getDecompressedFileName(File file) throws IOException
IOException
public static InputStream getFileInputStream(File file) throws IOException
IOException
public static boolean isZipped(File file)
public static boolean isGzipped(File file)
public static boolean isFileEmpty(File file) throws IOException
IOException
Copyright © 2015 European Bioinformatics Institute. All Rights Reserved.