Java Doc for StringUtil.java in  » Portal » liferay-portal-4.4.2 » com » liferay » portal » kernel » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » liferay portal 4.4.2 » com.liferay.portal.kernel.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.liferay.portal.kernel.util.StringUtil

All known Subclasses:   com.liferay.util.StringUtil,
StringUtil
public class StringUtil (Code)
View Source
author:
   Brian Wing Shun Chan




Method Summary
public static  Stringadd(String s, String add)
    
public static  Stringadd(String s, String add, String delimiter)
    
public static  Stringadd(String s, String add, String delimiter, boolean allowDuplicates)
    
public static  StringbytesToHexString(byte[] bytes)
    
public static  booleancontains(String s, String text)
    
public static  booleancontains(String s, String text, String delimiter)
    
public static  intcount(String s, String text)
    
public static  booleanendsWith(String s, char end)
    
public static  booleanendsWith(String s, String end)
    
public static  StringextractChars(String s)
    
public static  StringextractDigits(String s)
    
public static  StringextractFirst(String s, String delimiter)
    
public static  StringextractLast(String s, String delimiter)
    
public static  Stringhighlight(String s, String keywords)
    
public static  Stringhighlight(String s, String keywords, String highlight1, String highlight2)
    
public static  StringlowerCase(String s)
    
public static  Stringmerge(boolean[] array)
    
public static  Stringmerge(boolean[] array, String delimiter)
    
public static  Stringmerge(int[] array)
    
public static  Stringmerge(int[] array, String delimiter)
    
public static  Stringmerge(long[] array)
    
public static  Stringmerge(long[] array, String delimiter)
    
public static  Stringmerge(short[] array)
    
public static  Stringmerge(short[] array, String delimiter)
    
public static  Stringmerge(List list)
    
public static  Stringmerge(List list, String delimiter)
    
public static  Stringmerge(Object[] array)
    
public static  Stringmerge(Object[] array, String delimiter)
    
public static  Stringrandomize(String s)
    
public static  Stringread(ClassLoader classLoader, String name)
    
public static  Stringread(ClassLoader classLoader, String name, boolean all)
    
public static  Stringread(InputStream is)
    
public static  Stringremove(String s, String remove)
    
public static  Stringremove(String s, String remove, String delimiter)
    
public static  Stringreplace(String s, char oldSub, char newSub)
    
public static  Stringreplace(String s, char oldSub, String newSub)
    
public static  Stringreplace(String s, String oldSub, String newSub)
    
public static  Stringreplace(String s, String[] oldSubs, String[] newSubs)
    
public static  StringreplaceValues(String s, String begin, String end, Map values)
     Returns a string with replaced values.
public static  Stringreverse(String s)
    
public static  StringsafePath(String path)
    
public static  Stringshorten(String s)
    
public static  Stringshorten(String s, int length)
    
public static  Stringshorten(String s, String suffix)
    
public static  Stringshorten(String s, int length, String suffix)
    
public static  String[]split(String s)
    
public static  String[]split(String s, String delimiter)
    
public static  boolean[]split(String s, boolean x)
    
public static  boolean[]split(String s, String delimiter, boolean x)
    
public static  double[]split(String s, double x)
    
public static  double[]split(String s, String delimiter, double x)
    
public static  float[]split(String s, float x)
    
public static  float[]split(String s, String delimiter, float x)
    
public static  int[]split(String s, int x)
    
public static  int[]split(String s, String delimiter, int x)
    
public static  long[]split(String s, long x)
    
public static  long[]split(String s, String delimiter, long x)
    
public static  short[]split(String s, short x)
    
public static  short[]split(String s, String delimiter, short x)
    
public static  booleanstartsWith(String s, char begin)
    
public static  booleanstartsWith(String s, String start)
    
public static  StringstripBetween(String s, String begin, String end)
    
public static  Stringtrim(String s)
    
public static  Stringtrim(String s, char c)
    
public static  Stringtrim(String s, char[] exceptions)
    
public static  StringtrimLeading(String s)
    
public static  StringtrimLeading(String s, char c)
    
public static  StringtrimLeading(String s, char[] exceptions)
    
public static  StringtrimTrailing(String s)
    
public static  StringtrimTrailing(String s, char c)
    
public static  StringtrimTrailing(String s, char[] exceptions)
    
public static  StringupperCase(String s)
    
public static  StringupperCaseFirstLetter(String s)
    
public static  Stringwrap(String text)
    
public static  Stringwrap(String text, int width, String lineSeparator)
    



Method Detail
add
public static String add(String s, String add)(Code)



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



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



bytesToHexString
public static String bytesToHexString(byte[] bytes)(Code)



contains
public static boolean contains(String s, String text)(Code)



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



count
public static int count(String s, String text)(Code)



endsWith
public static boolean endsWith(String s, char end)(Code)



endsWith
public static boolean endsWith(String s, String end)(Code)



extractChars
public static String extractChars(String s)(Code)



extractDigits
public static String extractDigits(String s)(Code)



extractFirst
public static String extractFirst(String s, String delimiter)(Code)



extractLast
public static String extractLast(String s, String delimiter)(Code)



highlight
public static String highlight(String s, String keywords)(Code)



highlight
public static String highlight(String s, String keywords, String highlight1, String highlight2)(Code)



lowerCase
public static String lowerCase(String s)(Code)



merge
public static String merge(boolean[] array)(Code)



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



merge
public static String merge(int[] array)(Code)



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



merge
public static String merge(long[] array)(Code)



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



merge
public static String merge(short[] array)(Code)



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



merge
public static String merge(List list)(Code)



merge
public static String merge(List list, String delimiter)(Code)



merge
public static String merge(Object[] array)(Code)



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



randomize
public static String randomize(String s)(Code)



read
public static String read(ClassLoader classLoader, String name) throws IOException(Code)



read
public static String read(ClassLoader classLoader, String name, boolean all) throws IOException(Code)



read
public static String read(InputStream is) throws IOException(Code)



remove
public static String remove(String s, String remove)(Code)



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



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



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



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



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



replaceValues
public static String replaceValues(String s, String begin, String end, Map values)(Code)
Returns a string with replaced values. This method will replace all text in the given string, between the beginning and ending delimiter, with new values found in the given map. For example, if the string contained the text [$HELLO$], and the beginning delimiter was [$], and the ending delimiter was $], and the values map had a key of HELLO that mapped to WORLD, then the replaced string will contain the text [$WORLD$].
Parameters:
  s - the original string
Parameters:
  begin - the beginning delimiter
Parameters:
  end - the ending delimiter
Parameters:
  values - a map of old and new values a string with replaced values



reverse
public static String reverse(String s)(Code)



safePath
public static String safePath(String path)(Code)



shorten
public static String shorten(String s)(Code)



shorten
public static String shorten(String s, int length)(Code)



shorten
public static String shorten(String s, String suffix)(Code)



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



split
public static String[] split(String s)(Code)



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



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



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



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



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



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



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



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



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



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



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



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



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



startsWith
public static boolean startsWith(String s, char begin)(Code)



startsWith
public static boolean startsWith(String s, String start)(Code)



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



trim
public static String trim(String s)(Code)



trim
public static String trim(String s, char c)(Code)



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



trimLeading
public static String trimLeading(String s)(Code)



trimLeading
public static String trimLeading(String s, char c)(Code)



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



trimTrailing
public static String trimTrailing(String s)(Code)



trimTrailing
public static String trimTrailing(String s, char c)(Code)



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



upperCase
public static String upperCase(String s)(Code)



upperCaseFirstLetter
public static String upperCaseFirstLetter(String s)(Code)



wrap
public static String wrap(String text)(Code)



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



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.