Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.pptp_gui.util
Class StringUtil  view StringUtil download StringUtil.java

java.lang.Object
  extended byorg.pptp_gui.util.StringUtil

public abstract class StringUtil
extends java.lang.Object

The class will modify, extract, or determine information from an existing string.

Version:
0.04

Constructor Summary
StringUtil()
          Creates a new instance of StringUtil
 
Method Summary
static java.lang.String getPattern(java.lang.String str, java.lang.String re)
          Retrieve a portion of a string based on a regular expression pattern
static java.lang.String modifyString(java.lang.String str, java.lang.String replaceable, java.lang.String replacement)
          Replace every instance of a string pattern within a string with another string.
static boolean stringGrep(java.lang.String str, java.lang.String pattern)
          Perform a simple grep type of operation on a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtil

public StringUtil()
Creates a new instance of StringUtil

Method Detail

modifyString

public static java.lang.String modifyString(java.lang.String str,
                                            java.lang.String replaceable,
                                            java.lang.String replacement)
Replace every instance of a string pattern within a string with another string.


stringGrep

public static boolean stringGrep(java.lang.String str,
                                 java.lang.String pattern)
Perform a simple grep type of operation on a string


getPattern

public static java.lang.String getPattern(java.lang.String str,
                                          java.lang.String re)
Retrieve a portion of a string based on a regular expression pattern