public class FileUtil extends Object
Constructor and Description |
---|
FileUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkFileExtension(String fileName,
String extension) |
static boolean |
checkWSDLFileExtensionFromURL(String url,
String extension) |
static void |
deleteOwnAndParent(File file) |
static byte[] |
getByte(File file) |
static String |
getFileNameWithoutPath(String fileName) |
static String |
getFileNameWithoutPathWithBpel(String fileName) |
static String |
getFileNameWithoutPathWithWsdl(String fileName) |
static long |
getFileSizeToKB(String filePath) |
static String |
getWSDLFileNameWithoutPath(String fileName) |
static boolean |
isFileName(String fileName) |
static File |
saveToTemp(InputStream stream,
String fileName) |
public static boolean checkWSDLFileExtensionFromURL(String url, String extension)
public static void deleteOwnAndParent(File file)
public static byte[] getByte(File file) throws IOException
IOException
public static long getFileSizeToKB(String filePath)
public static boolean isFileName(String fileName)
public static File saveToTemp(InputStream stream, String fileName) throws IOException
IOException