Java Doc for StringUtil.java in  » ESB » cbesb-1.2 » com » bostechcorp » cbesb » common » 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 » ESB » cbesb 1.2 » com.bostechcorp.cbesb.common.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.bostechcorp.cbesb.common.util.StringUtil

StringUtil
public class StringUtil (Code)


Field Summary
protected static transient  Loglogger
    


Method Summary
public static  StringappendTagContent(int offset, String xml, String preTagName, String parentTagName, String childTagName, String subTag)
    
public static  StringappendTagContnt(String xml, String preTagName, String parentTagName, String childTagName, String subTag)
    
public static  intarrayHashCode(String[] args)
    
Parameters:
  args - -a string array a unique hashcode that depends on the elements in the array andnot on their order.

Normal array implementations do not implement the hashCodeproperly.

public static  booleanequalTo(String value1, String value2)
    
public static  Stringformat(double value)
    
public static  StringformatDouble(String value)
    
public static  StringformatDoubleNoDecimals(String value)
    
public static  StringgetStackTraceAsString(Throwable t)
    
public static  StringgetTagContent(int offset, String xml, String tagName)
    
public static  StringgetTagContnt(String xml, String tagName)
    
public static  StringgetTagValue(int offset, String xml, String tagName)
    
public static  StringgetTagValue(String xml, String tagName)
    
public static  booleangreaterThan(String value1, String value2)
    
public static  booleangreaterThanOrEqualTo(String value1, String value2)
    
public static  booleanisTrivial(String s)
    
public static  booleanlessThan(String value1, String value2)
    
public static  booleanlessThanOrEqualTo(String value1, String value2)
    
public static  doubleparseDouble(String value)
    
public static  floatparseFloat(String value)
    
public static  intparseInteger(String value)
    
public static  StringremoveDecimals(String value)
    
public static  StringremoveTagContent(String xml, String xmlStartTagString, String xmlEndTagString)
    
public static  StringrenderNonNull(String s)
    
public static  Stringreplace(String host, String find, String replce)
    
public static  StringreplaceString(String original, String from, String to)
     Replaces all instances of a substring with a replacement string.
Parameters:
  original - The original string.
Parameters:
  from - The substring you wish to replace.
Parameters:
  to - The string you want to substitute.
public static  StringtrimString(String s, int trimToSize)
    

Field Detail
logger
protected static transient Log logger(Code)





Method Detail
appendTagContent
public static String appendTagContent(int offset, String xml, String preTagName, String parentTagName, String childTagName, String subTag)(Code)
Find a particular XML tag value in the XML string



appendTagContnt
public static String appendTagContnt(String xml, String preTagName, String parentTagName, String childTagName, String subTag)(Code)



arrayHashCode
public static int arrayHashCode(String[] args)(Code)

Parameters:
  args - -a string array a unique hashcode that depends on the elements in the array andnot on their order.

Normal array implementations do not implement the hashCodeproperly. This implementation returns the same value irrespectiveof the order in which the strings are arranged within the array.




equalTo
public static boolean equalTo(String value1, String value2)(Code)
Method returns true if value 1 is equal to value2



format
public static String format(double value)(Code)
Method to format a double value to a string valueThe date object to be formatted String The string representation of the double value



formatDouble
public static String formatDouble(String value)(Code)
Method to format a double value to a string valueThe date object to be formatted String The string representation of the double value



formatDoubleNoDecimals
public static String formatDoubleNoDecimals(String value)(Code)
Method to remove decimals from string valueThe date object to be formatted String The string representation of the fromatted string



getStackTraceAsString
public static String getStackTraceAsString(Throwable t)(Code)



getTagContent
public static String getTagContent(int offset, String xml, String tagName)(Code)
Find a particular XML tag value in the XML string



getTagContnt
public static String getTagContnt(String xml, String tagName)(Code)



getTagValue
public static String getTagValue(int offset, String xml, String tagName)(Code)
Find a particular XML tag value in the XML string



getTagValue
public static String getTagValue(String xml, String tagName)(Code)



greaterThan
public static boolean greaterThan(String value1, String value2)(Code)
Method returns true if value 1 is greater than value2



greaterThanOrEqualTo
public static boolean greaterThanOrEqualTo(String value1, String value2)(Code)
Method returns true if value 1 is greater than equal to value2



isTrivial
public static boolean isTrivial(String s)(Code)
Method returns true if string is either null or empty after trimming



lessThan
public static boolean lessThan(String value1, String value2)(Code)
Method returns true if value 1 is less than value2



lessThanOrEqualTo
public static boolean lessThanOrEqualTo(String value1, String value2)(Code)
Method returns true if value 1 is less than equal to value2



parseDouble
public static double parseDouble(String value)(Code)
Method to remove decimals from string valueThe date object to be formatted String The string representation of the fromatted string



parseFloat
public static float parseFloat(String value)(Code)
Method to remove decimals from string valueThe date object to be formatted String The string representation of the fromatted string



parseInteger
public static int parseInteger(String value)(Code)
Method to return integer value from string valueThe date object to be formatted String The string representation of the fromatted string



removeDecimals
public static String removeDecimals(String value)(Code)
Method to remove decimals from string valueThe date object to be formatted String The string representation of the fromatted string



removeTagContent
public static String removeTagContent(String xml, String xmlStartTagString, String xmlEndTagString)(Code)



renderNonNull
public static String renderNonNull(String s)(Code)



replace
public static String replace(String host, String find, String replce)(Code)
This function replaces find string with replace string in host string



replaceString
public static String replaceString(String original, String from, String to)(Code)
Replaces all instances of a substring with a replacement string.
Parameters:
  original - The original string.
Parameters:
  from - The substring you wish to replace.
Parameters:
  to - The string you want to substitute. The original string with all occurences of the substringreplaced.



trimString
public static String trimString(String s, int trimToSize)(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.