|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nih.mipav.model.file.FileTypeInfo
public class FileTypeInfo
This class stores information about a file type, including the type description (i.e., 'NRRD') and allowed extensions (i.e., '.nrrd,.nhdr').
Field Summary | |
---|---|
static String |
EXT_DELIM
The string delimiter which should be used for extension lists passed into or generated by this class. |
Constructor Summary | |
---|---|
FileTypeInfo(String desc,
String extsString)
Create a new FileTypeInfo. |
|
FileTypeInfo(String desc,
Vector<String> exts)
Create a new FileTypeInfo. |
Method Summary | |
---|---|
void |
addExtension(String ext)
Add an extension to the file type's list of supported suffixes. |
String |
getDefaultExtension()
Returns the primary extension which should be used for this file type (i.e., '.nii' for NIFTI). |
String |
getDescription()
Retrieve the description for this file type. |
String |
getExtendedDescription()
Return the description and file extension list for this file type. |
Vector<String> |
getExtensionList()
Retrieve the list of extensions supported by this file type. |
String |
getExtensionsString()
Retrieve a string listing all of the extensions supported by this file type, separated by EXT_DELIM. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String EXT_DELIM
Constructor Detail |
---|
public FileTypeInfo(String desc, Vector<String> exts)
desc
- The description for this file type (i.e., 'NRRD').exts
- A vector of file extension strings, each of which should start with a period (i.e., '.mnc'). The
first extension is the default extension for this file type.public FileTypeInfo(String desc, String extsString)
desc
- The description for this file type (i.e., 'NIFTI').exts
- A String containing file extensions for this file type, separated by EXT_DELIM, starting with a
period (i.e., '.nii,.img'). The first extension is the default extension for this file type.Method Detail |
---|
public String getDescription()
public Vector<String> getExtensionList()
public String getExtensionsString()
public String getDefaultExtension()
public String getExtendedDescription()
public void addExtension(String ext)
ext
- The extension to add to this file type.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |