public class ExtensionList extends Object implements Cloneable, Serializable
Constructor and Description |
---|
ExtensionList()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addExtension(String ext)
Add a new extension.
|
void |
addMimeType(String mime)
Adds new mime type.
|
Object |
clone()
Clone new object.
|
boolean |
equals(Object o) |
Enumeration<String> |
extensions()
Get all extensions.
|
int |
hashCode() |
boolean |
isRegistered(FileObject fo)
Tests whether the file object is acceptable.
|
boolean |
isRegistered(String s)
Test whether the name in the string is acceptable.
|
Enumeration<String> |
mimeTypes()
Get all mime types.
|
void |
removeExtension(String ext)
Remove an extension.
|
void |
removeMimeType(String mime)
Removes a mime type.
|
String |
toString() |
public void addExtension(String ext)
ext
- the extensionpublic void removeExtension(String ext)
ext
- the extensionpublic void addMimeType(String mime)
mime
- the mime typepublic void removeMimeType(String mime)
mime
- the name of the typepublic boolean isRegistered(String s)
s
- the nametrue
if the name is acceptablepublic boolean isRegistered(FileObject fo)
fo
- the file object to testtrue
if the file object is acceptablepublic Enumeration<String> extensions()
public Enumeration<String> mimeTypes()