TelnetD at SF

net.wimpi.telnetd.util
Class StringUtil

java.lang.Object
  extended bynet.wimpi.telnetd.util.StringUtil

public final class StringUtil
extends java.lang.Object

Utility class with string manipulation methods.

Version:
2.0 (13/03/2005)
Author:
Dieter Wimberger

Method Summary
static java.lang.String[] split(java.lang.String str, char delim)
          Method that splits a string with delimited fields into an array of field strings.
static java.lang.String[] split(java.lang.String str, java.lang.String delim)
          Method that splits a string with delimited fields into an array of field strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

split

public static java.lang.String[] split(java.lang.String str,
                                       java.lang.String delim)
Method that splits a string with delimited fields into an array of field strings.

Parameters:
str - String with delimited fields.
delim - String that represents the delimiter.
Returns:
String[] holding all fields.

split

public static java.lang.String[] split(java.lang.String str,
                                       char delim)
Method that splits a string with delimited fields into an array of field strings.

Parameters:
str - String with delimited fields.
delim - char that represents the delimiter.
Returns:
String[] holding all fields.

TelnetD at SF

Copyright 2000-2005 Dieter Wimberger.