Java Doc for StringUtils.java in  » Database-DBMS » h2database » org » h2 » 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 » Database DBMS » h2database » org.h2.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.h2.util.StringUtils

StringUtils
public class StringUtils (Code)
A few String utility functions.




Method Summary
public static  StringaddAsterisk(String s, int index)
    
public static  StringarrayCombine(String[] list, char separatorChar)
    
public static  String[]arraySplit(String s, char separatorChar, boolean trim)
    
public static  Stringenclose(String s)
    
public static  booleanequals(String a, String b)
    
public static  StringformatDateTime(Date date, String format, String locale, String timezone)
    
public static  StringgetDefaultCharset()
    
public static  Stringindent(String s)
     Indents a string with 4 spaces.
public static  Stringindent(String s, int spaces)
     Indents a string with spaces.
public static  booleanisNullOrEmpty(String s)
     Check if a String is null or empty (the length is null).
public static  StringjavaDecode(String s)
    
public static  StringjavaEncode(String s)
    
public static  Stringpad(String string, int n, String padding, boolean right)
     Pad a string.
public static  DateparseDateTime(String date, String format, String locale, String timezone)
    
public static  StringquoteIdentifier(String s)
    
public static  StringquoteJavaIntArray(int[] array)
    
public static  StringquoteJavaString(String s)
    
public static  StringquoteJavaStringArray(String[] array)
    
public static  StringquoteRemarkSQL(String sql)
    
public static  StringquoteStringSQL(String s)
    
public static  StringreplaceAll(String s, String before, String after)
    
public static  StringtoLowerEnglish(String s)
    
public static  StringtoUpperEnglish(String s)
    
public static  StringunEnclose(String s)
    
public static  StringurlDecode(String encoded)
    
public static  StringurlEncode(String s)
    
public static  Stringutf8Decode(byte[] utf8)
    
public static  Stringutf8Decode(byte[] bytes, int offset, int length)
    
public static  byte[]utf8Encode(String s)
    
public static  StringxmlAttr(String name, String value)
     Creates an XML attribute of the form name="value".
public static  StringxmlCData(String data)
     Converts the data to a CDATA element.
public static  StringxmlComment(String data)
     Escapes a comment.
public static  StringxmlNode(String name, String attributes, String content)
     Create an XML node with optional attributes and content.
public static  StringxmlStartDoc()
    
public static  StringxmlText(String text)
     Escapes an XML text element.



Method Detail
addAsterisk
public static String addAsterisk(String s, int index)(Code)



arrayCombine
public static String arrayCombine(String[] list, char separatorChar)(Code)



arraySplit
public static String[] arraySplit(String s, char separatorChar, boolean trim)(Code)



enclose
public static String enclose(String s)(Code)



equals
public static boolean equals(String a, String b)(Code)



formatDateTime
public static String formatDateTime(Date date, String format, String locale, String timezone) throws SQLException(Code)
Formats a date using a format string



getDefaultCharset
public static String getDefaultCharset()(Code)



indent
public static String indent(String s)(Code)
Indents a string with 4 spaces.
Parameters:
  s - the string the indented string



indent
public static String indent(String s, int spaces)(Code)
Indents a string with spaces.
Parameters:
  s - the string
Parameters:
  spaces - the number of spaces the indented string



isNullOrEmpty
public static boolean isNullOrEmpty(String s)(Code)
Check if a String is null or empty (the length is null). true if it is null or empty



javaDecode
public static String javaDecode(String s) throws SQLException(Code)



javaEncode
public static String javaEncode(String s)(Code)



pad
public static String pad(String string, int n, String padding, boolean right)(Code)
Pad a string. This method is used for the SQL function RPAD and LPAD.
Parameters:
  string - the original string
Parameters:
  n - the target length
Parameters:
  padding - the padding string
Parameters:
  right - true if the padding should be appended at the end the padded string



parseDateTime
public static Date parseDateTime(String date, String format, String locale, String timezone) throws SQLException(Code)
Parses a date using a format string



quoteIdentifier
public static String quoteIdentifier(String s)(Code)



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



quoteJavaString
public static String quoteJavaString(String s)(Code)



quoteJavaStringArray
public static String quoteJavaStringArray(String[] array)(Code)



quoteRemarkSQL
public static String quoteRemarkSQL(String sql)(Code)



quoteStringSQL
public static String quoteStringSQL(String s)(Code)



replaceAll
public static String replaceAll(String s, String before, String after)(Code)



toLowerEnglish
public static String toLowerEnglish(String s)(Code)



toUpperEnglish
public static String toUpperEnglish(String s)(Code)



unEnclose
public static String unEnclose(String s)(Code)



urlDecode
public static String urlDecode(String encoded) throws SQLException(Code)



urlEncode
public static String urlEncode(String s)(Code)



utf8Decode
public static String utf8Decode(byte[] utf8)(Code)



utf8Decode
public static String utf8Decode(byte[] bytes, int offset, int length)(Code)



utf8Encode
public static byte[] utf8Encode(String s) throws SQLException(Code)



xmlAttr
public static String xmlAttr(String name, String value)(Code)
Creates an XML attribute of the form name="value". A single space is prepended to the name, so that multiple attributes can be concatenated.
Parameters:
  name -
Parameters:
  value - the attribute



xmlCData
public static String xmlCData(String data)(Code)
Converts the data to a CDATA element. If the data contains ']]>', it is escaped as a text element.
Parameters:
  data -



xmlComment
public static String xmlComment(String data)(Code)
Escapes a comment. If the data contains '--', it is converted to '- -'. The data is indented with 4 spaces if it contains a newline character.
Parameters:
  data -



xmlNode
public static String xmlNode(String name, String attributes, String content)(Code)
Create an XML node with optional attributes and content. The data is indented with 4 spaces if it contains a newline character.
Parameters:
  name - the element name
Parameters:
  attributes - the attributes (may be null)
Parameters:
  content - the content (may be null) the node



xmlStartDoc
public static String xmlStartDoc()(Code)
Returns



xmlText
public static String xmlText(String text)(Code)
Escapes an XML text element.
Parameters:
  text - the escaped text



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.