Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.portal.common.text
Class TextTools

    java.lang.Object
      org.jboss.portal.common.text.TextTools

    public class TextTools

extends java.lang.Object

Version:
  $Revision: 1.1 $
Author:
  Julien Viet

Constructor Summary
`TextTools()`

Method Summary
`static boolean` | `isAlphaNumeric(char c)` Returns true if the char c is alpha numeric i.e it belongs to one of the following ranges [0,9], [A,Z] or [a,z]
`static char` | `toHex(int z)` Returns the hexadecimal value of the provided numeric value.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TextTools

    public TextTools()

Method Detail

### isAlphaNumeric

    public static boolean isAlphaNumeric(char c)

  Returns true if the char c is alpha numeric i.e it belongs to one of the following ranges [0,9], [A,Z] or [a,z]

  Parameters:
    `c` - the char to test
  Returns:
    true if c is alpha numeric

### toHex

    public static char toHex(int z)
                      throws java.lang.IllegalArgumentException

  Returns the hexadecimal value of the provided numeric value.

  Parameters:
    `z` - the numeric value to convert
  Returns:
    the hexadecimal char
  Throws:
    `java.lang.IllegalArgumentException` - if the value is not between 0 and 15

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD