|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.graph.util.StringUtil
Various string utilities.
Constructor Summary | |
StringUtil()
|
Method Summary | |
static java.lang.String |
addExtIfNecessary(java.lang.String filename,
java.lang.String ext)
Places an extension on a filename if it does not already exist. |
static boolean |
hasExtension(java.lang.String filename,
java.lang.String ext)
|
static java.lang.String |
noSpaces(java.lang.String s)
Removes any spaces within a string. |
static java.lang.String |
postfixFilename(java.lang.String filename,
java.lang.String postfix)
Places a post fix on a filename just before the extension dot. |
static java.lang.String |
prefixFilename(java.lang.String path,
java.lang.String prefix)
Places a prefix on the filename. |
static java.lang.String |
setExtension(java.lang.String filename,
java.lang.String ext)
|
static java.lang.String |
strip(java.lang.String s)
Strips any white space of the end of a string. |
static java.lang.String |
stripExtension(java.lang.String filename)
|
static java.lang.String |
stripPath(java.lang.String filename)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringUtil()
Method Detail |
public static java.lang.String strip(java.lang.String s)
public static java.lang.String noSpaces(java.lang.String s)
public static java.lang.String postfixFilename(java.lang.String filename, java.lang.String postfix)
public static java.lang.String prefixFilename(java.lang.String path, java.lang.String prefix)
public static java.lang.String addExtIfNecessary(java.lang.String filename, java.lang.String ext)
filename
- Path to the file.ext
- Extension of the file.public static java.lang.String setExtension(java.lang.String filename, java.lang.String ext)
public static boolean hasExtension(java.lang.String filename, java.lang.String ext)
public static java.lang.String stripPath(java.lang.String filename)
public static java.lang.String stripExtension(java.lang.String filename)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |