gov.nasa.pds.vtool.util
Class Utility

java.lang.Object
  extended by gov.nasa.pds.vtool.util.Utility

public class Utility
extends Object

Version:
$Revision: 11676 $
Author:
pramirez

Constructor Summary
Utility()
           
 
Method Summary
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(org.json.JSONObject json)
           
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

Utility

public Utility()
Method Detail

stripWhitespace

public static String stripWhitespace(String value)

stripNewLines

public static String stripNewLines(String value)

filterString

public static String filterString(String value)

trimString

public static String trimString(String value,
                                int length)

stripOnlyWhitespaceAndNewLine

public static String stripOnlyWhitespaceAndNewLine(String value)
Strips only newline characters and extra whitespaces.

Parameters:
value - A string value.
Returns:
The filtered value.

toURL

public static URL toURL(String s)
                 throws MalformedURLException
Convert a string to a URL.

Parameters:
s - The string to convert
Returns:
A URL of the input string
Throws:
MalformedURLException

toStringNoBraces

public static String toStringNoBraces(org.json.JSONObject json)


Copyright © 2005-2013 Planetary Data System. All Rights Reserved.