gov.nasa.pds.tools.util
Class Utility

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

public class Utility
extends java.lang.Object

Version:
$Revision: 3461 $
Author:
pramirez

Constructor Summary
Utility()
           
 
Method Summary
static java.lang.String filterString(java.lang.String value)
           
static java.lang.String stripNewLines(java.lang.String value)
           
static java.lang.String stripWhitespace(java.lang.String value)
           
static java.net.URL toURL(java.lang.String s)
          Convert a string to a URL.
static java.lang.String trimString(java.lang.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 java.lang.String stripWhitespace(java.lang.String value)

stripNewLines

public static java.lang.String stripNewLines(java.lang.String value)

filterString

public static java.lang.String filterString(java.lang.String value)

trimString

public static java.lang.String trimString(java.lang.String value,
                                          int length)

toURL

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

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


Copyright © 2005-2009 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.