org.mentawai.util
Class StringUtils

java.lang.Object
  extended by org.mentawai.util.StringUtils

public class StringUtils
extends java.lang.Object


Constructor Summary
StringUtils()
           
 
Method Summary
static java.lang.String fromBytesToHex(byte[] b)
           
static byte[] fromHexToBytes(java.lang.String hex)
           
static java.lang.String fromHexToString(java.lang.String hex)
           
static java.lang.String fromStringToHex(java.lang.String s)
           
static java.lang.String invert(java.lang.String s)
           
static boolean isEmpty(java.lang.String s)
           
static boolean isNotEmpty(java.lang.String s)
           
static java.lang.String randomString(int size)
           
static java.lang.String[] slice(java.lang.String line)
          Turns a line with strings separated by one or more spaces into a String array.
static java.lang.String[] split(java.lang.String line)
           
 
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

isNotEmpty

public static boolean isNotEmpty(java.lang.String s)

isEmpty

public static boolean isEmpty(java.lang.String s)

slice

public static java.lang.String[] slice(java.lang.String line)
Turns a line with strings separated by one or more spaces into a String array.

Parameters:
line - The line to be sliced
Returns:
A String array with the slices

split

public static java.lang.String[] split(java.lang.String line)

randomString

public static java.lang.String randomString(int size)

fromBytesToHex

public static java.lang.String fromBytesToHex(byte[] b)

fromHexToBytes

public static byte[] fromHexToBytes(java.lang.String hex)

fromHexToString

public static java.lang.String fromHexToString(java.lang.String hex)

fromStringToHex

public static java.lang.String fromStringToHex(java.lang.String s)

invert

public static java.lang.String invert(java.lang.String s)


Copyright © 2005 Mentawai Team. All Rights Reserved.