FileDocCategorySizeDatePackage
StringHelper.javaAPI DocExample825Thu May 05 05:37:30 BST 2005com.samscdrental.helper

StringHelper

public class StringHelper extends Object

Fields Summary
Constructors Summary
Methods Summary
public static booleancontainsNoControls(java.lang.String aString)

		for ( int i = 0; i < aString.length(); i++ )
		{
			char c = aString.charAt( i );
			if ( Character.isISOControl( c ) )
			{
				return false;
			}
		}
		return true;
	
public static booleancontainsOnlyAlphanumerics(java.lang.String aString)

		for ( int i = 0; i < aString.length(); i++ )
		{
			char c = aString.charAt( i );
			if ( !Character.isLetterOrDigit( c ) )
			{
				return false;
			}
		}
		return true;
	
public static booleancontainsOnlyNumerics(java.lang.String aString)

		for ( int i = 0; i < aString.length(); i++ )
		{
			char c = aString.charAt( i );
			if ( !Character.isDigit( c ) )
			{
				return false;
			}
		}
		return true;