public class Utility extends Object
Constructor and Description |
---|
Utility() |
Modifier and Type | Method and Description |
---|---|
static String |
filterString(String value) |
static String |
stripNewLines(String value) |
static String |
stripOnlyWhitespaceAndNewLine(String value)
Strips only newline characters and extra whitespaces.
|
static String |
stripWhitespace(String value) |
static String |
toStringNoBraces(com.google.gson.JsonObject json) |
static URL |
toURL(String s)
Convert a string to a URL.
|
static String |
trimString(String value,
int length) |
public static String stripOnlyWhitespaceAndNewLine(String value)
value
- A string value.public static URL toURL(String s) throws MalformedURLException
s
- The string to convertMalformedURLException
public static String toStringNoBraces(com.google.gson.JsonObject json)
Copyright © 2005–2017 Planetary Data System. All rights reserved.