Serializable
, Cloneable
public class ExtensionList extends Object implements Cloneable, Serializable
Constructor | Description |
---|---|
ExtensionList() |
Default constructor.
|
Modifier and Type | Method | 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(String s) |
Test whether the name in the string is acceptable.
|
boolean |
isRegistered(org.openide.filesystems.FileObject fo) |
Tests whether the file object 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(org.openide.filesystems.FileObject fo)
fo
- the file object to testtrue
if the file object is acceptablepublic Enumeration<String> extensions()
public Enumeration<String> mimeTypes()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.