public final class FileExtensions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VELOCITY_TEMPLATE_FILE_EXTENSION
The Constant VELOCITY_TEMPLATE_FILE_EXTENSION.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
download(java.net.URI uri)
Downloads Data from the given URI.
|
static java.lang.String |
getAbsolutPathWithoutFilename(java.io.File file)
Gets the absolut path without the filename.
|
static java.lang.String |
getCurrentAbsolutPathWithoutDotAndSlash()
Gets the current absolut path without the dot and slash.
|
static java.lang.String |
getFilenamePrefix(java.io.File file)
Gets the filename with the absolute path prefix.
|
static java.lang.String |
getFilenameSuffix(java.io.File file)
Gets the filename suffix or null if no suffix exists or the given file object is a directory.
|
static java.lang.String |
getFilenameWithoutExtension(java.io.File file)
Gets the filename without the extension or null if the given file object is a directory.
|
static java.io.File |
getTempDir()
Deprecated.
use instead the same name method in class
SystemFileExtensions Note: will be removed in next minor version |
static boolean |
isOpen(java.io.File file)
Not yet implemented.
|
public static final java.lang.String VELOCITY_TEMPLATE_FILE_EXTENSION
public static byte[] download(java.net.URI uri)
throws java.io.IOException
uri - The URI from where to download.java.io.IOException - Signals that an I/O exception has occurred.public static java.lang.String getAbsolutPathWithoutFilename(java.io.File file)
file - the file.public static java.lang.String getCurrentAbsolutPathWithoutDotAndSlash()
public static java.lang.String getFilenamePrefix(java.io.File file)
file - the file.public static java.lang.String getFilenameSuffix(java.io.File file)
file - the file.public static java.lang.String getFilenameWithoutExtension(java.io.File file)
file - the file.@Deprecated public static java.io.File getTempDir()
SystemFileExtensions public static boolean isOpen(java.io.File file)
throws java.io.IOException
file - The file to check.java.io.IOException - Signals that an I/O exception has occurred.