|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xinapse.multisliceimage.ImageName
public abstract class ImageName
Class to add extensions, prefixes and suffices to image file and URL names. This class understands the nature of image file name extensions such as ".img" and ".hdr" and takes care of constructing the correct file names.
| Method Summary | |
|---|---|
static java.lang.String |
addExtension(java.io.File f,
java.lang.String extension)
Adds an extension to a File to create the name for a new file with the given extension. |
static java.lang.String |
addExtension(java.lang.String name,
java.lang.String extension)
Adds an extension to a file or URL name String to create the name for a new file or URL with the given extension. |
static java.lang.String |
addPrefix(java.io.File f,
java.lang.String prefix)
Adds a prefix to a File name to create the name for a new File with the given prefix. |
static java.lang.String |
addPrefix(java.lang.String name,
java.lang.String prefix)
Adds a prefix to a file or URL name to create the name for a new file or URL with the given prefix. |
static java.lang.String |
addSuffix(java.io.File f,
java.lang.String suffix)
Adds a suffix to a File name to create the name for a new File with the given suffix. |
static java.lang.String |
addSuffix(java.lang.String name,
java.lang.String suffix)
Adds a suffix to a file or URL name to create the name for a new file or URL with the given suffix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String addExtension(java.io.File f,
java.lang.String extension)
f - the File to be extended.extension - the extension to be added.
public static java.lang.String addExtension(java.lang.String name,
java.lang.String extension)
name - the file or URL name to be extended.extension - the extension to be added.
public static java.lang.String addSuffix(java.io.File f,
java.lang.String suffix)
f - the File to be which the suffix is to be added.suffix - the suffix to be added.
public static java.lang.String addSuffix(java.lang.String name,
java.lang.String suffix)
name - the name of the file or URL to be which the suffix is to be added.suffix - the suffix to be added.
public static java.lang.String addPrefix(java.io.File f,
java.lang.String prefix)
f - the File to be which the prefix is to be added.prefix - the prefix to be added.
public static java.lang.String addPrefix(java.lang.String name,
java.lang.String prefix)
name - the name of the file or URL to which the prefix is to be added.prefix - the prefix to be added.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||