|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.citool.util.Utility
public class Utility
Constructor Summary | |
---|---|
Utility()
|
Method Summary | |
---|---|
static String |
filterString(String value)
|
static String |
getDateTime()
Get the current date time. |
static boolean |
isNull(String value)
Determines whether a value is null as defined by the PDS. |
static String |
printDiff(String indent,
List<DiffRecord> records)
|
static List<String> |
removeQuotes(List<String> list)
|
static String |
stripNewLines(String value)
|
static String |
stripOnlyWhitespaceAndNewLine(String value)
Strips only newline characters and extra whitespaces. |
static String |
stripWhitespace(String value)
|
static URL |
toURL(String s)
Convert a string to a URL. |
static String |
trimString(String value,
int length)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utility()
Method Detail |
---|
public static String stripWhitespace(String value)
public static String stripNewLines(String value)
public static String filterString(String value)
public static String trimString(String value, int length)
public static String stripOnlyWhitespaceAndNewLine(String value)
value
- A string value.
public static boolean isNull(String value)
value
- The value in question
public static List<String> removeQuotes(List<String> list)
public static URL toURL(String s) throws MalformedURLException
s
- The string to convert
MalformedURLException
public static String getDateTime()
public static String printDiff(String indent, List<DiffRecord> records)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |