public final class FileExtensions extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
VELOCITY_TEMPLATE_FILE_EXTENSION
The Constant VELOCITY_TEMPLATE_FILE_EXTENSION.
|
| Constructor and Description |
|---|
FileExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
download(URI uri)
Downloads Data from the given URI.
|
static String |
getAbsolutPathWithoutFilename(File file)
Gets the absolut path without the filename.
|
static String |
getCurrentAbsolutPathWithoutDotAndSlash()
Gets the current absolut path without the dot and slash.
|
static String |
getFilenamePrefix(File file)
Gets the filename with the absolute path prefix.
|
static String |
getFilenameSuffix(File file)
Gets the filename suffix or null if no suffix exists or the given file object is a directory.
|
static String |
getFilenameWithoutExtension(File file)
Gets the filename without the extension or null if the given file object is a directory.
|
static File |
getTempDir()
Gets the temporary directory from the system as File object.
|
static boolean |
isOpen(File file)
Not yet implemented.
|
public static final String VELOCITY_TEMPLATE_FILE_EXTENSION
public static byte[] download(URI uri) throws IOException
uri - The URI from where to download.IOException - Signals that an I/O exception has occurred.public static String getAbsolutPathWithoutFilename(File file)
file - the file.public static String getCurrentAbsolutPathWithoutDotAndSlash()
public static String getFilenamePrefix(File file)
file - the file.public static String getFilenameSuffix(File file)
file - the file.public static String getFilenameWithoutExtension(File file)
file - the file.public static File getTempDir()
public static boolean isOpen(File file)
file - The file to check.Copyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.