public class FileTypes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static FileTypes |
ASCII |
static FileTypes |
BINARY |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
extensions()
Get the list of registered file extensions
|
boolean |
matches(java.io.File file)
Determines if a file matches this extension type
|
boolean |
matches(java.lang.String name)
Determines if a file matches this extension type
|
void |
registerExtension(java.lang.String ext)
Register a new file extension
|
void |
unregisterExtension(java.lang.String ext)
Unregister a file extension
|
public java.lang.String[] extensions()
public void registerExtension(java.lang.String ext)
ext
- filename extension (excluding ".") to registerpublic void unregisterExtension(java.lang.String ext)
ext
- filename extension (excluding ".") to unregisterpublic boolean matches(java.io.File file)
file
- handle to filepublic boolean matches(java.lang.String name)
name
- file's nameCopyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.