com.jaxfront.core.util
Class TextTools

java.lang.Object
  extended by com.jaxfront.core.util.TextTools

public class TextTools
extends java.lang.Object

This class includes some nice features to convert and edit text. For example: the method colorToHex(Color) converts a Color Object into its Hex values.


Field Summary
static java.lang.String _refTxtCalcTemplate
           
static java.awt.Font CALC_BASE_FONT
           
static char CHAR_EMPTY
           
static char CHAR_NEWLINE
           
static char CHAR_SPACE
           
static java.text.DecimalFormat FROM_FLOATINGNUMBER_FORMAT
           
static char NATIVE_DECIMAL_SEP
           
static java.lang.String PI_END_TAG
           
static java.lang.String PI_START_TAG
           
static java.awt.Graphics STRING_LENGTH_GRAPHICS
           
 
Method Summary
static java.lang.String applyWhiteSpaceRestriction(java.lang.String newValue, int type)
           
static long calculateEM(int width, double offset)
           
static long calculateMaxTextLength(java.lang.String[] data)
           
static int calculateTextLength(java.awt.Font aFont, java.lang.String text)
           
static int calculateTextLength(int size)
           
static java.lang.String calculateTextLengthInEM(int size)
           
static java.lang.String colorToHex(java.awt.Color color)
          Converts a Color into its Hex values.
static java.lang.String[] compactStrings(java.lang.String[] strings)
           
static int compareTo(char[] string1, char[] string2)
           
static int compareTo(char[] string1, int offsetC1, char[] string2, int offsetC2)
          Compares two strings lexicographically.
static byte[] compress(byte[] input, int level)
           
static java.lang.String convertExponentialValue(java.lang.String number)
           
static java.lang.String convertNumbersToNative(java.lang.String number, java.text.DecimalFormatSymbols symbols)
           
static java.lang.String convertNumbersToView(java.lang.String number, java.text.DecimalFormat format, boolean useGrouping)
           
static java.lang.String convertNumbersToView(java.lang.String number, java.lang.String language, boolean useGrouping)
           
static java.lang.String convertToEM(int width)
           
static java.lang.String convertToEM(int width, double offset)
           
static int countCharBetween(java.lang.String source, int start, int end, char charakter, char direction)
          Counts the occured named characters between a start and end index of a string.
static java.awt.Color createColor(java.lang.String colorAsString)
           
static java.lang.String createDelimited(java.util.List s, java.lang.String delimiter, java.lang.String fieldSeparator)
           
static java.lang.String createDelimited(java.lang.String[] s, char delimiter, char fieldSeparator)
           
static java.lang.String createDelimited(java.lang.String[] s, java.lang.String delimiter)
           
static java.lang.String createHTMLString(java.lang.String content)
           
static byte[] decodeBase64(java.lang.String text)
           
static byte[] decodeBase64Ziped(java.lang.String value)
           
static byte[] decompress(byte[] compressedData)
           
static java.lang.String encodeAJAXDelimiter(java.lang.String value)
           
static java.lang.String encodeBase64(byte[] b)
           
static java.lang.String encodeBase64Ziped(byte[] value)
           
static java.lang.String encodeBase64Ziped(java.io.InputStream is)
           
static java.lang.String escapeHTMLForJavaScriptQuotes(java.lang.String previewHTML)
           
static java.lang.String escapeHTMLForJavaScriptVar(java.lang.String previewHTML)
           
static java.lang.String escapeNLSEntities(java.lang.String value)
          Replaces the global entities of a String.
static java.lang.StringBuffer exportToCSV(int startCol, java.lang.String[] columnNames, java.lang.String[][] array)
           
static java.lang.StringBuffer exportToCSV(int startCol, java.lang.String[] columnNames, java.lang.String[][] array, java.util.Map valueConversions)
           
static void exportToCSV(java.lang.StringBuffer result, int startCol, ListEntry[] columnNames, java.util.Map codeTables, NLS nls)
           
static java.lang.StringBuffer exportToCSV(java.lang.StringBuffer result, int startCol, java.lang.String[] columnNames, java.lang.String[][] array, java.util.Map valueConversions)
           
static void exportToCSV(java.lang.StringBuffer result, int startCol, java.lang.String[] columnNames, java.lang.String[] array, java.util.Map codeTables)
           
static java.lang.String extractHTMLDocType(java.lang.String html)
           
static byte[] fromHexStringToByte(java.lang.String hex)
           
static int getCharsForWidth(int width)
           
static java.lang.String[] getChoicesWithNoneEntry(java.lang.String[] choices)
           
static java.lang.String getClassName(java.lang.Class aClass)
           
static java.lang.String getContentFromURL(java.net.URL url)
           
static int getNodeEndPos(java.lang.String content, java.lang.String nodeName, int start, char nodeStartQualifier, char nodeEndQualifier)
           
static java.util.HashMap getProcessingInstruction(java.lang.String xml)
           
static int getReferenceTextLength()
           
static java.lang.String getRequestURLPatched(java.lang.String requestedURL)
           
static java.lang.String getSeasonSplashName()
           
static int getWidthFromEM(java.lang.String width)
           
static int getWidthInPixel(int characters, java.awt.Font aFont)
           
static int hasChar(java.lang.String source, int pos, char charakter, char direction)
           
static boolean includesAnchorHref(java.lang.String captionTooltip)
           
static void main(java.lang.String[] args)
           
static java.lang.StringBuffer out(java.lang.String s, java.text.BreakIterator iter)
           
static boolean parseBoolean(java.lang.String value, boolean defaultValue)
           
static byte parseByte(java.lang.String value, byte defaultValue)
           
static int parseInt(java.lang.String value, int defaultValue)
           
static long parseLong(java.lang.String value, long defaultValue)
           
static java.lang.String quote(java.lang.String text)
          Quotes any passing text.
static java.lang.String removeChar(java.lang.String source, char aChar)
           
static java.lang.String removeInvalidUnicodeChars(java.lang.String toClean)
           
static java.lang.String removeSingleOccureChar(java.lang.String source, char aChar)
           
static java.lang.String removeSpaceChars(java.lang.String result)
           
static java.lang.String removeSpecialChars(java.lang.String toClean)
           
static char[] removeTrailingChar(char[] source, char aChar, int offset, char stopChar)
           
static char[] replace(char[] source, char from, char to)
           
static java.lang.StringBuffer replace(java.lang.StringBuffer source, java.lang.String oldString, java.lang.String newString)
          Replaces a text of a String by a new one.
static java.lang.String replace(java.lang.String source, char from, char to)
           
static java.lang.String replace(java.lang.String source, java.lang.String oldString, java.lang.String newString)
          Replaces a text of a String by a new one.
static java.lang.String replace(java.lang.String source, java.lang.String oldString, java.lang.String newString, java.lang.String splitCharacter)
          Replaces a text of a String by a new one.
static java.lang.String replaceBetween(java.lang.String source, java.util.Hashtable vars, java.lang.String value, java.lang.String from, java.lang.String to)
           
static java.lang.String replaceFirst(java.lang.String source, java.lang.String oldString, java.lang.String newString)
           
static java.lang.String replaceGlobalEntities(java.lang.String value)
          Replaces the global entities of a String.
static java.lang.String replaceGlobalHTMLEntities(java.lang.String value)
          Replaces the global entities of a String.
static java.lang.String replaceGlobalUserProperties(java.lang.String value, Document dom)
          Replaces the global user properties for a String.
static java.lang.String replaceVars(java.lang.String source, java.util.Hashtable vars)
           
static java.lang.String replaceWhiteSpace(java.lang.String toClean, char replacement, boolean collapseSpaces)
           
static java.lang.String reverseText(java.lang.String text)
          Reverses the given text.
static java.lang.String splitText(java.lang.String text)
           
static java.lang.String splitTextMaxLength(java.lang.String text, int maxLength)
           
static void substituteWithNLSValue(java.lang.String[] columnNames, java.util.Map nlsMaps, java.lang.StringBuffer result, int col, java.lang.String value)
           
static java.lang.String substituteWithNLSValue(java.lang.String columnName, java.util.Map nlsMaps, java.lang.String value)
           
static java.lang.String substringAfter(java.lang.String source, java.lang.String from)
           
static java.lang.String toHexString(byte b)
           
static java.lang.String toHexString(byte[] bytes)
           
static java.lang.String[] tokenize(java.lang.String s, char delimiter, boolean returnDelim)
          Tokenizes a String and returns its token in a String array.
static java.lang.String[] tokenize(java.lang.String s, java.lang.String delimiter)
          Tokenizes a String and returns its token in a String array.
static java.lang.Integer[] tokenizeToInteger(java.lang.String s, java.lang.String delimiter)
          Tokenizes a String and returns its token in a String array.
static java.lang.String toString(java.lang.Object[] objects)
          Creates a comma separated string representation of an object array.
static java.lang.String translateVar(java.lang.String aValue, Document dom)
           
static java.lang.String translateVar(java.lang.String aValue, Document dom, java.util.Map vars)
           
static java.lang.String translateVar(java.lang.String aValue, java.util.Map vars)
           
static java.lang.String translateVar(java.lang.String startIdentifier, java.lang.String endIdentifier, java.lang.String aValue, java.util.Hashtable vars)
           
static java.lang.String translateXPathVar(java.lang.String startIdentifier, java.lang.String endIdentifier, java.lang.String aValue, Type aType)
           
static java.lang.String unEscapeNLSEntities(java.lang.String value)
          Replaces the global entities of a String.
static java.lang.String unquote(java.lang.String text)
          Removes the start and end quotes from any passing text.
static java.lang.StringBuffer wordOut(java.lang.String s, java.text.BreakIterator iter, int maxLength)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_refTxtCalcTemplate

public static java.lang.String _refTxtCalcTemplate

CALC_BASE_FONT

public static final java.awt.Font CALC_BASE_FONT

CHAR_EMPTY

public static final char CHAR_EMPTY
See Also:
Constant Field Values

CHAR_NEWLINE

public static final char CHAR_NEWLINE
See Also:
Constant Field Values

CHAR_SPACE

public static final char CHAR_SPACE
See Also:
Constant Field Values

FROM_FLOATINGNUMBER_FORMAT

public static final java.text.DecimalFormat FROM_FLOATINGNUMBER_FORMAT

NATIVE_DECIMAL_SEP

public static final char NATIVE_DECIMAL_SEP
See Also:
Constant Field Values

PI_END_TAG

public static final java.lang.String PI_END_TAG
See Also:
Constant Field Values

PI_START_TAG

public static final java.lang.String PI_START_TAG
See Also:
Constant Field Values

STRING_LENGTH_GRAPHICS

public static final java.awt.Graphics STRING_LENGTH_GRAPHICS
Method Detail

applyWhiteSpaceRestriction

public static java.lang.String applyWhiteSpaceRestriction(java.lang.String newValue,
                                                          int type)

calculateEM

public static long calculateEM(int width,
                               double offset)

calculateMaxTextLength

public static long calculateMaxTextLength(java.lang.String[] data)

calculateTextLength

public static int calculateTextLength(java.awt.Font aFont,
                                      java.lang.String text)

calculateTextLength

public static int calculateTextLength(int size)

calculateTextLengthInEM

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

colorToHex

public static java.lang.String colorToHex(java.awt.Color color)
Converts a Color into its Hex values.

Parameters:
Color - a Color to convert
Returns:
the Hex values of a Color

compactStrings

public static java.lang.String[] compactStrings(java.lang.String[] strings)

compareTo

public static int compareTo(char[] string1,
                            char[] string2)

compareTo

public static int compareTo(char[] string1,
                            int offsetC1,
                            char[] string2,
                            int offsetC2)
Compares two strings lexicographically. The comparison is based on the Unicode value of each character in the strings. The character sequence represented by this String object is compared lexicographically to the character sequence represented by the argument string. The result is a negative integer if this String object lexicographically precedes the argument string. The result is a positive integer if this String object lexicographically follows the argument string. The result is zero if the strings are equal; compareTo returns 0 exactly when the Object.equals(Object)method would return true.

This is the definition of lexicographic ordering. If two strings are different, then either they have different characters at some index that is a valid index for both strings, or their lengths are different, or both. If they have different characters at one or more index positions, let k be the smallest such index; then the string whose character at position k has the smaller value, as determined by using the < operator, lexicographically precedes the other string. In this case, compareTo returns the difference of the two character values at position k in the two string -- that is, the value:

 this.charAt(k) - anotherString.charAt(k)
 
If there is no index position at which they differ, then the shorter string lexicographically precedes the longer string. In this case, compareTo returns the difference of the lengths of the strings -- that is, the value:
 this.length() - anotherString.length()
 

Parameters:
anotherString - the String to be compared.
Returns:
the value 0 if the argument string is equal to this string; a value less than 0 if this string is lexicographically less than the string argument; and a value greater than 0 if this string is lexicographically greater than the string argument.

compress

public static byte[] compress(byte[] input,
                              int level)

convertExponentialValue

public static java.lang.String convertExponentialValue(java.lang.String number)
                                                throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException

convertNumbersToNative

public static java.lang.String convertNumbersToNative(java.lang.String number,
                                                      java.text.DecimalFormatSymbols symbols)

convertNumbersToView

public static java.lang.String convertNumbersToView(java.lang.String number,
                                                    java.text.DecimalFormat format,
                                                    boolean useGrouping)

convertNumbersToView

public static java.lang.String convertNumbersToView(java.lang.String number,
                                                    java.lang.String language,
                                                    boolean useGrouping)

convertToEM

public static java.lang.String convertToEM(int width)

convertToEM

public static java.lang.String convertToEM(int width,
                                           double offset)

countCharBetween

public static int countCharBetween(java.lang.String source,
                                   int start,
                                   int end,
                                   char charakter,
                                   char direction)
Counts the occured named characters between a start and end index of a string.

Parameters:
source - string to process
start - index to start
end - index to end
charakter - to count
direction - to processs

createColor

public static java.awt.Color createColor(java.lang.String colorAsString)

createDelimited

public static java.lang.String createDelimited(java.util.List s,
                                               java.lang.String delimiter,
                                               java.lang.String fieldSeparator)

createDelimited

public static java.lang.String createDelimited(java.lang.String[] s,
                                               char delimiter,
                                               char fieldSeparator)

createDelimited

public static java.lang.String createDelimited(java.lang.String[] s,
                                               java.lang.String delimiter)

createHTMLString

public static java.lang.String createHTMLString(java.lang.String content)

decodeBase64

public static byte[] decodeBase64(java.lang.String text)
                           throws java.io.IOException
Throws:
java.io.IOException

decodeBase64Ziped

public static byte[] decodeBase64Ziped(java.lang.String value)
                                throws java.io.IOException
Throws:
java.io.IOException

decompress

public static byte[] decompress(byte[] compressedData)

encodeAJAXDelimiter

public static java.lang.String encodeAJAXDelimiter(java.lang.String value)

encodeBase64

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

encodeBase64Ziped

public static java.lang.String encodeBase64Ziped(byte[] value)
                                          throws java.io.IOException
Throws:
java.io.IOException

encodeBase64Ziped

public static java.lang.String encodeBase64Ziped(java.io.InputStream is)
                                          throws java.io.IOException
Throws:
java.io.IOException

escapeHTMLForJavaScriptQuotes

public static java.lang.String escapeHTMLForJavaScriptQuotes(java.lang.String previewHTML)

escapeHTMLForJavaScriptVar

public static java.lang.String escapeHTMLForJavaScriptVar(java.lang.String previewHTML)

escapeNLSEntities

public static java.lang.String escapeNLSEntities(java.lang.String value)
Replaces the global entities of a String.

Parameters:
value - a String that contains global entities
Returns:
a String without any global entities

exportToCSV

public static java.lang.StringBuffer exportToCSV(int startCol,
                                                 java.lang.String[] columnNames,
                                                 java.lang.String[][] array)

exportToCSV

public static java.lang.StringBuffer exportToCSV(int startCol,
                                                 java.lang.String[] columnNames,
                                                 java.lang.String[][] array,
                                                 java.util.Map valueConversions)

exportToCSV

public static void exportToCSV(java.lang.StringBuffer result,
                               int startCol,
                               ListEntry[] columnNames,
                               java.util.Map codeTables,
                               NLS nls)

exportToCSV

public static java.lang.StringBuffer exportToCSV(java.lang.StringBuffer result,
                                                 int startCol,
                                                 java.lang.String[] columnNames,
                                                 java.lang.String[][] array,
                                                 java.util.Map valueConversions)

exportToCSV

public static void exportToCSV(java.lang.StringBuffer result,
                               int startCol,
                               java.lang.String[] columnNames,
                               java.lang.String[] array,
                               java.util.Map codeTables)

extractHTMLDocType

public static java.lang.String extractHTMLDocType(java.lang.String html)

fromHexStringToByte

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

getCharsForWidth

public static int getCharsForWidth(int width)

getChoicesWithNoneEntry

public static java.lang.String[] getChoicesWithNoneEntry(java.lang.String[] choices)

getClassName

public static java.lang.String getClassName(java.lang.Class aClass)

getContentFromURL

public static java.lang.String getContentFromURL(java.net.URL url)
                                          throws java.io.IOException
Throws:
java.io.IOException

getNodeEndPos

public static int getNodeEndPos(java.lang.String content,
                                java.lang.String nodeName,
                                int start,
                                char nodeStartQualifier,
                                char nodeEndQualifier)

getProcessingInstruction

public static java.util.HashMap getProcessingInstruction(java.lang.String xml)

getReferenceTextLength

public static int getReferenceTextLength()

getRequestURLPatched

public static java.lang.String getRequestURLPatched(java.lang.String requestedURL)

getSeasonSplashName

public static java.lang.String getSeasonSplashName()

getWidthFromEM

public static int getWidthFromEM(java.lang.String width)

getWidthInPixel

public static int getWidthInPixel(int characters,
                                  java.awt.Font aFont)

hasChar

public static int hasChar(java.lang.String source,
                          int pos,
                          char charakter,
                          char direction)

includesAnchorHref

public static boolean includesAnchorHref(java.lang.String captionTooltip)

main

public static void main(java.lang.String[] args)

out

public static java.lang.StringBuffer out(java.lang.String s,
                                         java.text.BreakIterator iter)

parseBoolean

public static boolean parseBoolean(java.lang.String value,
                                   boolean defaultValue)

parseByte

public static byte parseByte(java.lang.String value,
                             byte defaultValue)

parseInt

public static int parseInt(java.lang.String value,
                           int defaultValue)

parseLong

public static long parseLong(java.lang.String value,
                             long defaultValue)

quote

public static java.lang.String quote(java.lang.String text)
Quotes any passing text.

Parameters:
text - to quote

removeChar

public static java.lang.String removeChar(java.lang.String source,
                                          char aChar)

removeInvalidUnicodeChars

public static java.lang.String removeInvalidUnicodeChars(java.lang.String toClean)

removeSingleOccureChar

public static java.lang.String removeSingleOccureChar(java.lang.String source,
                                                      char aChar)

removeSpaceChars

public static java.lang.String removeSpaceChars(java.lang.String result)

removeSpecialChars

public static java.lang.String removeSpecialChars(java.lang.String toClean)

removeTrailingChar

public static char[] removeTrailingChar(char[] source,
                                        char aChar,
                                        int offset,
                                        char stopChar)

replace

public static char[] replace(char[] source,
                             char from,
                             char to)

replace

public static java.lang.StringBuffer replace(java.lang.StringBuffer source,
                                             java.lang.String oldString,
                                             java.lang.String newString)
Replaces a text of a String by a new one.

Parameters:
source - the original String that contains the old text
oldString - the text that should be replaced by the new one
newString - the new text that replaces the old one
Returns:
the source String with the new text

replace

public static java.lang.String replace(java.lang.String source,
                                       char from,
                                       char to)

replace

public static java.lang.String replace(java.lang.String source,
                                       java.lang.String oldString,
                                       java.lang.String newString)
Replaces a text of a String by a new one.

Parameters:
source - the original String that contains the old text
oldString - the text that should be replaced by the new one
newString - the new text that replaces the old one
Returns:
the source String with the new text

replace

public static java.lang.String replace(java.lang.String source,
                                       java.lang.String oldString,
                                       java.lang.String newString,
                                       java.lang.String splitCharacter)
Replaces a text of a String by a new one.

Parameters:
source - the original String that contains the old text
oldString - the text that should be replaced by the new one
newString - the new text that replaces the old one
splitCharacter - a character that is added at the end of both the oldString and newString
Returns:
the source String with the new text

replaceBetween

public static java.lang.String replaceBetween(java.lang.String source,
                                              java.util.Hashtable vars,
                                              java.lang.String value,
                                              java.lang.String from,
                                              java.lang.String to)

replaceFirst

public static java.lang.String replaceFirst(java.lang.String source,
                                            java.lang.String oldString,
                                            java.lang.String newString)

replaceGlobalEntities

public static java.lang.String replaceGlobalEntities(java.lang.String value)
Replaces the global entities of a String.

Parameters:
value - a String that contains global entities
Returns:
a String without any global entities

replaceGlobalHTMLEntities

public static java.lang.String replaceGlobalHTMLEntities(java.lang.String value)
Replaces the global entities of a String.

Parameters:
value - a String that contains global entities
Returns:
a String without any global entities

replaceGlobalUserProperties

public static java.lang.String replaceGlobalUserProperties(java.lang.String value,
                                                           Document dom)
Replaces the global user properties for a String.

Parameters:
value - a String that contains global user properties
dom - a JAXFront Document (DOM)
Returns:
a String without any global user properties

replaceVars

public static java.lang.String replaceVars(java.lang.String source,
                                           java.util.Hashtable vars)

replaceWhiteSpace

public static java.lang.String replaceWhiteSpace(java.lang.String toClean,
                                                 char replacement,
                                                 boolean collapseSpaces)

reverseText

public static java.lang.String reverseText(java.lang.String text)
Reverses the given text.

Parameters:
text - java.lang.String a text
Returns:
java.lang.String the reversed text

splitText

public static java.lang.String splitText(java.lang.String text)

splitTextMaxLength

public static java.lang.String splitTextMaxLength(java.lang.String text,
                                                  int maxLength)

substituteWithNLSValue

public static void substituteWithNLSValue(java.lang.String[] columnNames,
                                          java.util.Map nlsMaps,
                                          java.lang.StringBuffer result,
                                          int col,
                                          java.lang.String value)

substituteWithNLSValue

public static java.lang.String substituteWithNLSValue(java.lang.String columnName,
                                                      java.util.Map nlsMaps,
                                                      java.lang.String value)

substringAfter

public static java.lang.String substringAfter(java.lang.String source,
                                              java.lang.String from)

toHexString

public static java.lang.String toHexString(byte b)

toHexString

public static java.lang.String toHexString(byte[] bytes)

tokenize

public static java.lang.String[] tokenize(java.lang.String s,
                                          char delimiter,
                                          boolean returnDelim)
Tokenizes a String and returns its token in a String array.

Parameters:
s - a String that needs to be tokenized
delimiter - delimiter parameters for the tokenizer
Returns:
a String array that contains all found tokens

tokenize

public static java.lang.String[] tokenize(java.lang.String s,
                                          java.lang.String delimiter)
Tokenizes a String and returns its token in a String array.

Parameters:
s - a String that needs to be tokenized
delimiter - delimiter parameters for the tokenizer
Returns:
a String array that contains all found tokens

tokenizeToInteger

public static java.lang.Integer[] tokenizeToInteger(java.lang.String s,
                                                    java.lang.String delimiter)
Tokenizes a String and returns its token in a String array.

Parameters:
s - a String that needs to be tokenized
delimiter - delimiter parameters for the tokenizer
Returns:
a String array that contains all found tokens

toString

public static java.lang.String toString(java.lang.Object[] objects)
Creates a comma separated string representation of an object array.

Parameters:
objects - to create string from
Returns:

translateVar

public static java.lang.String translateVar(java.lang.String aValue,
                                            Document dom)
Parameters:
xpath -
Returns:

translateVar

public static java.lang.String translateVar(java.lang.String aValue,
                                            Document dom,
                                            java.util.Map vars)

translateVar

public static java.lang.String translateVar(java.lang.String aValue,
                                            java.util.Map vars)

translateVar

public static java.lang.String translateVar(java.lang.String startIdentifier,
                                            java.lang.String endIdentifier,
                                            java.lang.String aValue,
                                            java.util.Hashtable vars)

translateXPathVar

public static java.lang.String translateXPathVar(java.lang.String startIdentifier,
                                                 java.lang.String endIdentifier,
                                                 java.lang.String aValue,
                                                 Type aType)

unEscapeNLSEntities

public static java.lang.String unEscapeNLSEntities(java.lang.String value)
Replaces the global entities of a String.

Parameters:
value - a String that contains global entities
Returns:
a String without any global entities

unquote

public static java.lang.String unquote(java.lang.String text)
Removes the start and end quotes from any passing text.

Parameters:
text - to unquote

wordOut

public static java.lang.StringBuffer wordOut(java.lang.String s,
                                             java.text.BreakIterator iter,
                                             int maxLength)