Java Doc for OldUtilities.java in  » Blogger-System » apache-roller-3.1 » org » apache » roller » ui » rendering » velocity » deprecated » 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 » Blogger System » apache roller 3.1 » org.apache.roller.ui.rendering.velocity.deprecated 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.roller.ui.rendering.velocity.deprecated.OldUtilities

OldUtilities
public class OldUtilities (Code)
Utility methods needed by old Roller 2.X macros/templates. Deprecated because they are either redundant or unnecesary.




Method Summary
public static  StringaddNofollow(String html)
     Code (stolen from Pebble) to add rel="nofollow" string to all links in HTML.
public static  Stringautoformat(String s)
     Autoformat.
final public static  StringcharToCDATA(char ch)
     Converts a character to CDATA character.
Parameters:
  ch - The character to convert.
final public static  StringcharToHTML(char ch, boolean xml)
     Converts a character to HTML or XML entity.
Parameters:
  ch - The character to convert.
Parameters:
  xml - Convert the character to XML if set to true.
author:
   Erik C.
final public static  Stringdecode(String s)
     URL decoding.
public static  StringdecodeString(String str)
     Decode a string using Base64 encoding.
final public static  Stringencode(String s)
     URL encoding.
public static  StringencodeEmail(String str)
    
public static  StringencodeString(String str)
     Encode a string using Base64 encoding.
public static  booleanequals(String str1, String str2)
    
public static  StringescapeHTML(String str)
    
public static  StringescapeHTML(String s, boolean escapeAmpersand)
     Escape, but do not replace HTML.
public static  Stringformat8charsDate(Date date)
     Return a date in RFC-822 format.
public static  StringformatDate(Date d, String fmt)
     Format date using SimpleDateFormat format string.
public static  StringformatIso8601Date(Date d)
     Format date in ISO-8601 format.
public static  StringformatIso8601Day(Date d)
     Format date in ISO-8601 format.
public static  StringformatRfc822Date(Date date)
     Return a date in RFC-822 format.
public static  DategetNow()
     Return date for current time.
public static  StringhexEncode(String str)
    
public static  booleanisAlphanumeric(String str)
    
public static  booleanisEmpty(String str)
    
public static  booleanisNotEmpty(String str)
    
public static  Stringleft(String str, int length)
    
public static  StringremoveHTML(String str)
     Remove occurences of html, defined as any text between the characters "<" and ">".
public static  StringremoveHTML(String str, boolean addSpace)
     Remove occurences of html, defined as any text between the characters "<" and ">".
public static  Stringreplace(String src, String target, String rWith)
    
public static  Stringreplace(String src, String target, String rWith, int maxCount)
    
public static  String[]split(String str1, String str2)
    
public static  StringstringReplace(String str, String str1, String str2)
    
public static  StringstringReplace(String str, String str1, String str2, int maxCount)
    
public static  String[]stripAll(String[] strs)
    
final public static  StringtextToCDATA(String text)
     Converts a text string to HTML or XML entities.
Parameters:
  text - The string to convert.
final public static  StringtextToHTML(String text, boolean xml)
     Converts a text string to HTML or XML entities.
author:
   Erik C.
final public static  StringtextToHTML(String text)
     Converts a text string to HTML or XML entities.
Parameters:
  text - The string to convert.
author:
   Erik C.
final public static  StringtextToXML(String text)
     Converts a text string to XML entities.
Parameters:
  text - The string to convert.
author:
   Erik C.
public static  StringtoBase64(byte[] aValue)
    
public static  StringtransformToHTMLSubset(String s)
     Transforms the given String into a subset of HTML displayable on a web page.
public static  Stringtruncate(String str, int lower, int upper, String appendToEnd)
     Strips HTML and truncates.
public static  StringtruncateNicely(String str, int lower, int upper, String appendToEnd)
    
public static  StringtruncateText(String str, int lower, int upper, String appendToEnd)
    
public static  StringunescapeHTML(String str)
    



Method Detail
addNofollow
public static String addNofollow(String html)(Code)
Code (stolen from Pebble) to add rel="nofollow" string to all links in HTML.



autoformat
public static String autoformat(String s)(Code)
Autoformat.



charToCDATA
final public static String charToCDATA(char ch)(Code)
Converts a character to CDATA character.
Parameters:
  ch - The character to convert. The converted string.



charToHTML
final public static String charToHTML(char ch, boolean xml)(Code)
Converts a character to HTML or XML entity.
Parameters:
  ch - The character to convert.
Parameters:
  xml - Convert the character to XML if set to true.
author:
   Erik C. Thauvin The converted string.



decode
final public static String decode(String s)(Code)
URL decoding.
Parameters:
  s - a URL-encoded string to be URL-decoded URL decoded value of s using character encoding UTF-8; null if s is null.



decodeString
public static String decodeString(String str) throws IOException(Code)
Decode a string using Base64 encoding.
Parameters:
  str - String
throws:
  IOException -



encode
final public static String encode(String s)(Code)
URL encoding.
Parameters:
  s - a string to be URL-encoded URL encoding of s using character encoding UTF-8; null if s is null.



encodeEmail
public static String encodeEmail(String str)(Code)



encodeString
public static String encodeString(String str) throws IOException(Code)
Encode a string using Base64 encoding. Used when storing passwords as cookies. This is weak encoding in that anyone can use the decodeString routine to reverse the encoding.
Parameters:
  str - String
throws:
  IOException -



equals
public static boolean equals(String str1, String str2)(Code)



escapeHTML
public static String escapeHTML(String str)(Code)



escapeHTML
public static String escapeHTML(String s, boolean escapeAmpersand)(Code)
Escape, but do not replace HTML.
Parameters:
  escapeAmpersand - Optionally escapeampersands (&).



format8charsDate
public static String format8charsDate(Date date)(Code)
Return a date in RFC-822 format.



formatDate
public static String formatDate(Date d, String fmt)(Code)
Format date using SimpleDateFormat format string.



formatIso8601Date
public static String formatIso8601Date(Date d)(Code)
Format date in ISO-8601 format.



formatIso8601Day
public static String formatIso8601Day(Date d)(Code)
Format date in ISO-8601 format.



formatRfc822Date
public static String formatRfc822Date(Date date)(Code)
Return a date in RFC-822 format.



getNow
public static Date getNow()(Code)
Return date for current time.



hexEncode
public static String hexEncode(String str)(Code)



isAlphanumeric
public static boolean isAlphanumeric(String str)(Code)



isEmpty
public static boolean isEmpty(String str)(Code)



isNotEmpty
public static boolean isNotEmpty(String str)(Code)



left
public static String left(String str, int length)(Code)



removeHTML
public static String removeHTML(String str)(Code)
Remove occurences of html, defined as any text between the characters "<" and ">". Replace any HTML tags with a space.



removeHTML
public static String removeHTML(String str, boolean addSpace)(Code)
Remove occurences of html, defined as any text between the characters "<" and ">". Optionally replace HTML tags with a space.



replace
public static String replace(String src, String target, String rWith)(Code)



replace
public static String replace(String src, String target, String rWith, int maxCount)(Code)



split
public static String[] split(String str1, String str2)(Code)



stringReplace
public static String stringReplace(String str, String str1, String str2)(Code)
Replace occurrences of str1 in string str with str2



stringReplace
public static String stringReplace(String str, String str1, String str2, int maxCount)(Code)
Replace occurrences of str1 in string str with str2
Parameters:
  str - String to operate on
Parameters:
  str1 - String to be replaced
Parameters:
  str2 - String to be used as replacement
Parameters:
  maxCount - Number of times to replace, 0 for all



stripAll
public static String[] stripAll(String[] strs)(Code)



textToCDATA
final public static String textToCDATA(String text)(Code)
Converts a text string to HTML or XML entities.
Parameters:
  text - The string to convert. The converted string.



textToHTML
final public static String textToHTML(String text, boolean xml)(Code)
Converts a text string to HTML or XML entities.
author:
   Erik C. Thauvin
Parameters:
  text - The string to convert.
Parameters:
  xml - Convert the string to XML if set to true. The converted string.



textToHTML
final public static String textToHTML(String text)(Code)
Converts a text string to HTML or XML entities.
Parameters:
  text - The string to convert.
author:
   Erik C. Thauvin The converted string.



textToXML
final public static String textToXML(String text)(Code)
Converts a text string to XML entities.
Parameters:
  text - The string to convert.
author:
   Erik C. Thauvin The converted string.



toBase64
public static String toBase64(byte[] aValue)(Code)
Convert a byte array into a Base64 string (as used in mime formats)



transformToHTMLSubset
public static String transformToHTMLSubset(String s)(Code)
Transforms the given String into a subset of HTML displayable on a web page. The subset includes <b>, <i>, <p>, <br>, <pre> and <a href> (and their corresponding end tags).
Parameters:
  s - the String to transform the transformed String



truncate
public static String truncate(String str, int lower, int upper, String appendToEnd)(Code)
Strips HTML and truncates.



truncateNicely
public static String truncateNicely(String str, int lower, int upper, String appendToEnd)(Code)



truncateText
public static String truncateText(String str, int lower, int upper, String appendToEnd)(Code)



unescapeHTML
public static String unescapeHTML(String str)(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)

w_ww_.__j__a___va_2__s._c__o__m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.