Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.util
Class StringUtil_IW

java.lang.Object
  extended by com.liferay.portal.kernel.util.StringUtil_IW

public class StringUtil_IW
extends Object


Method Summary
 String add(String s, String add)
           
 String add(String s, String add, String delimiter)
           
 String add(String s, String add, String delimiter, boolean allowDuplicates)
           
 String appendParentheticalSuffix(String s, int suffix)
           
 String appendParentheticalSuffix(String s, String suffix)
           
 String bytesToHexString(byte[] bytes)
           
 boolean contains(String s, String text)
           
 boolean contains(String s, String text, String delimiter)
           
 int count(String s, String text)
           
 boolean endsWith(String s, char end)
           
 boolean endsWith(String s, String end)
           
 String extract(String s, char[] chars)
           
 String extractChars(String s)
           
 String extractDigits(String s)
           
 String extractFirst(String s, char delimiter)
           
 String extractFirst(String s, String delimiter)
           
 String extractLast(String s, char delimiter)
           
 String extractLast(String s, String delimiter)
           
 String extractLeadingDigits(String s)
           
static StringUtil_IW getInstance()
           
 String highlight(String s, String keywords)
          Deprecated.  
 String highlight(String s, String[] queryTerms)
           
 String highlight(String s, String[] queryTerms, String highlight1, String highlight2)
           
 String highlight(String s, String keywords, String highlight1, String highlight2)
          Deprecated.  
 String insert(String s, String insert, int offset)
           
 void lowerCase(String... array)
           
 String lowerCase(String s)
           
 boolean matches(String s, String pattern)
           
 boolean matchesIgnoreCase(String s, String pattern)
           
 String merge(boolean[] array)
           
 String merge(boolean[] array, String delimiter)
           
 String merge(char[] array)
           
 String merge(char[] array, String delimiter)
           
 String merge(Collection<?> col)
           
 String merge(Collection<?> col, String delimiter)
           
 String merge(double[] array)
           
 String merge(double[] array, String delimiter)
           
 String merge(float[] array)
           
 String merge(float[] array, String delimiter)
           
 String merge(int[] array)
           
 String merge(int[] array, String delimiter)
           
 String merge(long[] array)
           
 String merge(long[] array, String delimiter)
           
 String merge(Object[] array)
           
 String merge(Object[] array, String delimiter)
           
 String merge(short[] array)
           
 String merge(short[] array, String delimiter)
           
 String quote(String s)
           
 String quote(String s, char quote)
           
 String quote(String s, String quote)
           
 String randomize(String s)
           
 String read(ClassLoader classLoader, String name)
           
 String read(ClassLoader classLoader, String name, boolean all)
           
 String read(InputStream is)
           
 void readLines(InputStream is, Collection<String> lines)
           
 String remove(String s, String remove)
           
 String remove(String s, String remove, String delimiter)
           
 String replace(String s, char oldSub, char newSub)
           
 String replace(String s, char oldSub, String newSub)
           
 String replace(String s, String[] oldSubs, String[] newSubs)
           
 String replace(String s, String[] oldSubs, String[] newSubs, boolean exactMatch)
           
 String replace(String s, String oldSub, String newSub)
           
 String replace(String s, String oldSub, String newSub, int fromIndex)
           
 String replace(String s, String begin, String end, Map<String,String> values)
           
 String replaceFirst(String s, char oldSub, char newSub)
           
 String replaceFirst(String s, char oldSub, String newSub)
           
 String replaceFirst(String s, String[] oldSubs, String[] newSubs)
           
 String replaceFirst(String s, String oldSub, String newSub)
           
 String replaceLast(String s, char oldSub, char newSub)
           
 String replaceLast(String s, char oldSub, String newSub)
           
 String replaceLast(String s, String[] oldSubs, String[] newSubs)
           
 String replaceLast(String s, String oldSub, String newSub)
           
 StringBundler replaceToStringBundler(String s, String begin, String end, Map<String,String> values)
           
 StringBundler replaceWithStringBundler(String s, String begin, String end, Map<String,StringBundler> values)
           
 String reverse(String s)
           
 String safePath(String path)
           
 String shorten(String s)
           
 String shorten(String s, int length)
           
 String shorten(String s, int length, String suffix)
           
 String shorten(String s, String suffix)
           
 String[] split(String s)
           
 boolean[] split(String s, boolean x)
           
 String[] split(String s, char delimiter)
           
 double[] split(String s, double x)
           
 float[] split(String s, float x)
           
 int[] split(String s, int x)
           
 long[] split(String s, long x)
           
 short[] split(String s, short x)
           
 String[] split(String s, String delimiter)
           
 boolean[] split(String s, String delimiter, boolean x)
           
 double[] split(String s, String delimiter, double x)
           
 float[] split(String s, String delimiter, float x)
           
 int[] split(String s, String delimiter, int x)
           
 long[] split(String s, String delimiter, long x)
           
 short[] split(String s, String delimiter, short x)
           
 String[] splitLines(String s)
           
 boolean startsWith(String s, char begin)
           
 boolean startsWith(String s, String start)
           
 int startsWithWeight(String s1, String s2)
           
 String strip(String s, char remove)
           
 String stripBetween(String s, String begin, String end)
           
 String toCharCode(String s)
           
 String toHexString(int i)
           
 String toHexString(long l)
           
 String toHexString(Object obj)
           
 String trim(String s)
           
 String trim(String s, char c)
           
 String trim(String s, char[] exceptions)
           
 String trimLeading(String s)
           
 String trimLeading(String s, char c)
           
 String trimLeading(String s, char[] exceptions)
           
 String trimTrailing(String s)
           
 String trimTrailing(String s, char c)
           
 String trimTrailing(String s, char[] exceptions)
           
 String unquote(String s)
           
 String upperCase(String s)
           
 String upperCaseFirstLetter(String s)
           
 String valueOf(Object obj)
           
 String wrap(String text)
           
 String wrap(String text, int width, String lineSeparator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static StringUtil_IW getInstance()

add

public String add(String s,
                  String add)

add

public String add(String s,
                  String add,
                  String delimiter)

add

public String add(String s,
                  String add,
                  String delimiter,
                  boolean allowDuplicates)

appendParentheticalSuffix

public String appendParentheticalSuffix(String s,
                                        int suffix)

appendParentheticalSuffix

public String appendParentheticalSuffix(String s,
                                        String suffix)

bytesToHexString

public String bytesToHexString(byte[] bytes)

contains

public boolean contains(String s,
                        String text)

contains

public boolean contains(String s,
                        String text,
                        String delimiter)

count

public int count(String s,
                 String text)

endsWith

public boolean endsWith(String s,
                        char end)

endsWith

public boolean endsWith(String s,
                        String end)

extract

public String extract(String s,
                      char[] chars)

extractChars

public String extractChars(String s)

extractDigits

public String extractDigits(String s)

extractFirst

public String extractFirst(String s,
                           char delimiter)

extractFirst

public String extractFirst(String s,
                           String delimiter)

extractLast

public String extractLast(String s,
                          char delimiter)

extractLast

public String extractLast(String s,
                          String delimiter)

extractLeadingDigits

public String extractLeadingDigits(String s)

highlight

public String highlight(String s,
                        String keywords)
Deprecated. 


highlight

public String highlight(String s,
                        String keywords,
                        String highlight1,
                        String highlight2)
Deprecated. 


highlight

public String highlight(String s,
                        String[] queryTerms)

highlight

public String highlight(String s,
                        String[] queryTerms,
                        String highlight1,
                        String highlight2)

insert

public String insert(String s,
                     String insert,
                     int offset)

lowerCase

public String lowerCase(String s)

lowerCase

public void lowerCase(String... array)

matches

public boolean matches(String s,
                       String pattern)

matchesIgnoreCase

public boolean matchesIgnoreCase(String s,
                                 String pattern)

merge

public String merge(boolean[] array)

merge

public String merge(boolean[] array,
                    String delimiter)

merge

public String merge(char[] array)

merge

public String merge(char[] array,
                    String delimiter)

merge

public String merge(Collection<?> col)

merge

public String merge(Collection<?> col,
                    String delimiter)

merge

public String merge(double[] array)

merge

public String merge(double[] array,
                    String delimiter)

merge

public String merge(float[] array)

merge

public String merge(float[] array,
                    String delimiter)

merge

public String merge(int[] array)

merge

public String merge(int[] array,
                    String delimiter)

merge

public String merge(long[] array)

merge

public String merge(long[] array,
                    String delimiter)

merge

public String merge(Object[] array)

merge

public String merge(Object[] array,
                    String delimiter)

merge

public String merge(short[] array)

merge

public String merge(short[] array,
                    String delimiter)

quote

public String quote(String s)

quote

public String quote(String s,
                    char quote)

quote

public String quote(String s,
                    String quote)

randomize

public String randomize(String s)

read

public String read(ClassLoader classLoader,
                   String name)
            throws IOException
Throws:
IOException

read

public String read(ClassLoader classLoader,
                   String name,
                   boolean all)
            throws IOException
Throws:
IOException

read

public String read(InputStream is)
            throws IOException
Throws:
IOException

readLines

public void readLines(InputStream is,
                      Collection<String> lines)
               throws IOException
Throws:
IOException

remove

public String remove(String s,
                     String remove)

remove

public String remove(String s,
                     String remove,
                     String delimiter)

replace

public String replace(String s,
                      char oldSub,
                      char newSub)

replace

public String replace(String s,
                      char oldSub,
                      String newSub)

replace

public String replace(String s,
                      String oldSub,
                      String newSub)

replace

public String replace(String s,
                      String oldSub,
                      String newSub,
                      int fromIndex)

replace

public String replace(String s,
                      String begin,
                      String end,
                      Map<String,String> values)

replace

public String replace(String s,
                      String[] oldSubs,
                      String[] newSubs)

replace

public String replace(String s,
                      String[] oldSubs,
                      String[] newSubs,
                      boolean exactMatch)

replaceFirst

public String replaceFirst(String s,
                           char oldSub,
                           char newSub)

replaceFirst

public String replaceFirst(String s,
                           char oldSub,
                           String newSub)

replaceFirst

public String replaceFirst(String s,
                           String oldSub,
                           String newSub)

replaceFirst

public String replaceFirst(String s,
                           String[] oldSubs,
                           String[] newSubs)

replaceLast

public String replaceLast(String s,
                          char oldSub,
                          char newSub)

replaceLast

public String replaceLast(String s,
                          char oldSub,
                          String newSub)

replaceLast

public String replaceLast(String s,
                          String oldSub,
                          String newSub)

replaceLast

public String replaceLast(String s,
                          String[] oldSubs,
                          String[] newSubs)

replaceToStringBundler

public StringBundler replaceToStringBundler(String s,
                                            String begin,
                                            String end,
                                            Map<String,String> values)

replaceWithStringBundler

public StringBundler replaceWithStringBundler(String s,
                                              String begin,
                                              String end,
                                              Map<String,StringBundler> values)

reverse

public String reverse(String s)

safePath

public String safePath(String path)

shorten

public String shorten(String s)

shorten

public String shorten(String s,
                      int length)

shorten

public String shorten(String s,
                      int length,
                      String suffix)

shorten

public String shorten(String s,
                      String suffix)

split

public String[] split(String s)

split

public boolean[] split(String s,
                       boolean x)

split

public String[] split(String s,
                      char delimiter)

split

public double[] split(String s,
                      double x)

split

public float[] split(String s,
                     float x)

split

public int[] split(String s,
                   int x)

split

public long[] split(String s,
                    long x)

split

public short[] split(String s,
                     short x)

split

public String[] split(String s,
                      String delimiter)

split

public boolean[] split(String s,
                       String delimiter,
                       boolean x)

split

public double[] split(String s,
                      String delimiter,
                      double x)

split

public float[] split(String s,
                     String delimiter,
                     float x)

split

public int[] split(String s,
                   String delimiter,
                   int x)

split

public long[] split(String s,
                    String delimiter,
                    long x)

split

public short[] split(String s,
                     String delimiter,
                     short x)

splitLines

public String[] splitLines(String s)

startsWith

public boolean startsWith(String s,
                          char begin)

startsWith

public boolean startsWith(String s,
                          String start)

startsWithWeight

public int startsWithWeight(String s1,
                            String s2)

strip

public String strip(String s,
                    char remove)

stripBetween

public String stripBetween(String s,
                           String begin,
                           String end)

toCharCode

public String toCharCode(String s)

toHexString

public String toHexString(int i)

toHexString

public String toHexString(long l)

toHexString

public String toHexString(Object obj)

trim

public String trim(String s)

trim

public String trim(String s,
                   char c)

trim

public String trim(String s,
                   char[] exceptions)

trimLeading

public String trimLeading(String s)

trimLeading

public String trimLeading(String s,
                          char c)

trimLeading

public String trimLeading(String s,
                          char[] exceptions)

trimTrailing

public String trimTrailing(String s)

trimTrailing

public String trimTrailing(String s,
                           char c)

trimTrailing

public String trimTrailing(String s,
                           char[] exceptions)

unquote

public String unquote(String s)

upperCase

public String upperCase(String s)

upperCaseFirstLetter

public String upperCaseFirstLetter(String s)

valueOf

public String valueOf(Object obj)

wrap

public String wrap(String text)

wrap

public String wrap(String text,
                   int width,
                   String lineSeparator)

Liferay 6.1.2-ce-ga3