Java Doc for TextUtilities.java in  » Web-Framework » jpublish » com » anthonyeden » lib » 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 » Web Framework » jpublish » com.anthonyeden.lib.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.anthonyeden.lib.util.TextUtilities

TextUtilities
final public class TextUtilities (Code)
Useful text manipulation methods.
author:
   Anthony Eden


Field Summary
final public static  StringDEFAULT_DELIMITER
    


Method Summary
public static  Stringcapitalize(String text)
     Capitalize the first letter of the given text.
public static  ListchompString(String text)
     Split the String on newlines.
public static  booleanhasNonAlphaNumericCharacters(String str)
     Returns true if the given String contains at least one non alpha- numeric character.
public static  booleanhasNonAlphaNumericCharacters(String str, char[] ignore)
     Returns true if the given String contains at least one non alpha- numeric character.
public static  booleanisAscii(char c)
     Return true if the character is an ASCII character.
public static  booleanisExtendedAscii(char c)
     Return true if the character is an extended ASCII character.
public static  Stringjoin(Object[] data)
     Join the given Object array using the DEFAULT_DELIMITER.
public static  Stringjoin(Object[] data, String delimiter)
     Join the given Object array using the given delimiter.
public static  Stringjoin(Collection data)
     Join the given Collection using the DEFAULT_DELIMITER.
public static  Stringjoin(Collection data, String delimiter)
     Join the given Collection using the given delimiter.
public static  Stringremove(String src, char[] removeChars)
     Remove all instances of the given characters from the given String.
public static  StringremoveWhitespace(String src)
     Remove all whitespace from the given String.
public static  Stringreplace(String str, String searchString, String replacementString)
     Replace all instances of a String within another String.
public static  ListsplitString(String text, String separator)
     Split the given text using the given separator.
public static  ListsplitString(String text, String separator, boolean removeWhitespace)
     Split the given text using the given separator.
public static  ListsplitStringOnWhitespace(String text)
     Split the given String on whitespace characters.
public static  StringstripNonAlphaNumericCharacters(String str)
     String all non alpha-numeric characters from the given String.
public static  StringstripNonAlphaNumericCharacters(String str, char[] ignore)
     Strip all non alpha-numeric characters from the given String.

Field Detail
DEFAULT_DELIMITER
final public static String DEFAULT_DELIMITER(Code)





Method Detail
capitalize
public static String capitalize(String text)(Code)
Capitalize the first letter of the given text.
Parameters:
  text - The original text The capitalized text



chompString
public static List chompString(String text)(Code)
Split the String on newlines.
Parameters:
  text - The source text A List of String objects



hasNonAlphaNumericCharacters
public static boolean hasNonAlphaNumericCharacters(String str)(Code)
Returns true if the given String contains at least one non alpha- numeric character.
Parameters:
  str - The String True if one or more alpha-numeric characters are found



hasNonAlphaNumericCharacters
public static boolean hasNonAlphaNumericCharacters(String str, char[] ignore)(Code)
Returns true if the given String contains at least one non alpha- numeric character. Characters in the ignore array are not checked.
Parameters:
  str - The String
Parameters:
  ignore - An array of characters to ignore True if one or more alpha-numeric characters are found



isAscii
public static boolean isAscii(char c)(Code)
Return true if the character is an ASCII character.
Parameters:
  c - The character True if character is ASCII



isExtendedAscii
public static boolean isExtendedAscii(char c)(Code)
Return true if the character is an extended ASCII character.
Parameters:
  c - The character True if character is extended ASCII



join
public static String join(Object[] data)(Code)
Join the given Object array using the DEFAULT_DELIMITER.
Parameters:
  data - The data array The resulting String



join
public static String join(Object[] data, String delimiter)(Code)
Join the given Object array using the given delimiter. The toString() method on each Object will be invoked to retrieve a String representation of the Object.
Parameters:
  data - The data array
Parameters:
  delimiter - The delimiter String The resulting String



join
public static String join(Collection data)(Code)
Join the given Collection using the DEFAULT_DELIMITER.
Parameters:
  data - The collection The resulting String



join
public static String join(Collection data, String delimiter)(Code)
Join the given Collection using the given delimiter. The toString() method on each Object will be invoked to retrieve a String representation of the Object.
Parameters:
  data - The collection
Parameters:
  delimiter - The delimiter String The resulting String



remove
public static String remove(String src, char[] removeChars)(Code)
Remove all instances of the given characters from the given String.
Parameters:
  src - The source String
Parameters:
  removeChars - The characters to remove The result String



removeWhitespace
public static String removeWhitespace(String src)(Code)
Remove all whitespace from the given String.
Parameters:
  src - The source String The resulting String



replace
public static String replace(String str, String searchString, String replacementString)(Code)
Replace all instances of a String within another String.
Parameters:
  str - The complete String
Parameters:
  searchString - The search String
Parameters:
  replacementString - The replacement String



splitString
public static List splitString(String text, String separator)(Code)
Split the given text using the given separator.
Parameters:
  text - The original text
Parameters:
  separator - The separator The result List of String objects



splitString
public static List splitString(String text, String separator, boolean removeWhitespace)(Code)
Split the given text using the given separator.
Parameters:
  text - The original text
Parameters:
  separator - The separator The result List of String objects



splitStringOnWhitespace
public static List splitStringOnWhitespace(String text)(Code)
Split the given String on whitespace characters.
Parameters:
  text - The source String A List of String objects



stripNonAlphaNumericCharacters
public static String stripNonAlphaNumericCharacters(String str)(Code)
String all non alpha-numeric characters from the given String.
Parameters:
  str - The String The new String



stripNonAlphaNumericCharacters
public static String stripNonAlphaNumericCharacters(String str, char[] ignore)(Code)
Strip all non alpha-numeric characters from the given String. Characters contained in the ignore array will be left within the String.
Parameters:
  str - The String
Parameters:
  ignore - An array of characters to ignore The new String



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.