net.sf.whatsnew.filter.util
Class StringUtils

java.lang.Object
  |
  +--net.sf.whatsnew.filter.util.StringUtils

public class StringUtils
extends java.lang.Object

Operations on Strings

Version:
$Id: StringUtils.java,v 1.1 2004/05/13 01:22:37 dquintela Exp $
Author:
Diogo Quintela

Constructor Summary
StringUtils()
           
 
Method Summary
static java.lang.String expandTabs(java.lang.String line, int tabSize)
          Expand tabs contained in string argument line.
static java.lang.String[] splitIntoLines(java.lang.String text, java.lang.String delim)
          Splits a string into lines using a newline as delim
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

expandTabs

public static java.lang.String expandTabs(java.lang.String line,
                                          int tabSize)
                                   throws AppException
Expand tabs contained in string argument line.
Parameters:
line - The string to have tabs removed
tabSize - The tab size to use in the transformation
Returns:
The input string with tabs removed (null if null string input)
Throws:
AppException - if an invalid tab size is especied (tabSize <= 0)

splitIntoLines

public static java.lang.String[] splitIntoLines(java.lang.String text,
                                                java.lang.String delim)
Splits a string into lines using a newline as delim
Parameters:
text - The text to split
delim - The delim to use
Returns:
The array of splited lines


Copyright © 2004 Sourceforge. All Rights Reserved.