S-PLUS Connect/Java v1.0

com.insightful.splus.util
Class StringUtilities

java.lang.Object
  extended bycom.insightful.splus.util.StringUtilities

public class StringUtilities
extends Object

Some useful string manipulation static methods.


Method Summary
static String escapeSpecialCharacters(String str)
          Add a backslash before special characters (quote, apostrophe, and backslash) and return the resulting string.
static String[] getElementsContainingPattern(String[] fullList, String pattern)
          Return all elements of fullList that contain a specified pattern.
static String getJavaSystemProperty(String propName)
          Return string value of requested System.getProperty
static String getJavaSystemProperty(String propName, String defaultVal)
          Return string value of requested System.getProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getJavaSystemProperty

public static String getJavaSystemProperty(String propName,
                                           String defaultVal)
Return string value of requested System.getProperty


getJavaSystemProperty

public static String getJavaSystemProperty(String propName)
Return string value of requested System.getProperty


getElementsContainingPattern

public static String[] getElementsContainingPattern(String[] fullList,
                                                    String pattern)
Return all elements of fullList that contain a specified pattern. If there are no matches an empty array is returned.


escapeSpecialCharacters

public static String escapeSpecialCharacters(String str)
Add a backslash before special characters (quote, apostrophe, and backslash) and return the resulting string.


S-PLUS Connect/Java v1.0

Copyright © 2000, 2002 Insightful Corporation
Warning: Classes not documented in the S-PLUS Programmer's Guide may change in future releases.