Skip navigation links


com.essbase.eas.utils
Class StringUtilities

java.lang.Object
  extended by com.essbase.eas.utils.StringUtilities


public class StringUtilities
extends java.lang.Object

Title: StringUtilities Description: This class handles conversion between Java Unicode String and UTF8 String Copyright: Copyright (c) 2002 Company: Hyperion Solutions Corporation

Version:
1.0
Author:
Kenneth Lau

Constructor Summary
StringUtilities()
           

 

Method Summary
static java.lang.String escapeSingleQuotes(java.lang.String in)
           
static java.lang.String getEscapeString(java.lang.String s)
           
static void main(java.lang.String[] args)
           
static java.lang.String replaceAll(java.lang.String sourceString, java.lang.String replace, java.lang.String replacement)
           
static java.lang.String replaceLineSeparator(java.lang.String text)
           
static java.lang.String replaceLineSeparator(java.lang.String text, java.lang.String eol)
           
static java.lang.String stringToUnicode(java.lang.String str)
           
static java.util.ArrayList tokenizeSingleQuotedString(java.lang.String str)
          This method splits the input comma separated string into tokens.
static java.lang.String unicodeToPlatform(java.lang.String unicodeStr)
           
static java.lang.String utf8ToUnicode(java.lang.String utf8Str)
           

 

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

 

Constructor Detail

StringUtilities

public StringUtilities()

Method Detail

unicodeToPlatform

public static java.lang.String unicodeToPlatform(java.lang.String unicodeStr)

utf8ToUnicode

public static java.lang.String utf8ToUnicode(java.lang.String utf8Str)

stringToUnicode

public static java.lang.String stringToUnicode(java.lang.String str)

replaceLineSeparator

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

replaceLineSeparator

public static java.lang.String replaceLineSeparator(java.lang.String text,
                                                    java.lang.String eol)

replaceAll

public static java.lang.String replaceAll(java.lang.String sourceString,
                                          java.lang.String replace,
                                          java.lang.String replacement)

getEscapeString

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

escapeSingleQuotes

public static java.lang.String escapeSingleQuotes(java.lang.String in)

tokenizeSingleQuotedString

public static java.util.ArrayList tokenizeSingleQuotedString(java.lang.String str)
This method splits the input comma separated string into tokens. It expects each token to be sorrounded by single quotes.
Parameters:
str -
Returns:
token list

main

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

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.