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


java.lang.Object
   org.apache.roller.ui.rendering.model.UtilitiesModel

UtilitiesModel
public class UtilitiesModel implements Model(Code)
Model which provides access to a set of general utilities.




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  Stringdecode(String s)
     URL decoding.
final public static  Stringencode(String s)
     URL encoding.
public static  StringencodeEmail(String str)
    
public static  booleanequals(String str1, String str2)
    
public static  StringescapeHTML(String str)
    
public static  StringescapeXML(String str)
    
public static  Stringformat8charsDate(Date date)
     Return a date in RFC-822 format.
public  StringformatDate(Date d, String fmt)
     Format date using SimpleDateFormat format string.
public static  StringformatDate(Date d, String fmt, TimeZone tzOverride)
     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  StringgetModelName()
    
public static  DategetNow()
     Return date for current time.
public static  StringhexEncode(String str)
    
public  voidinit(Map initData)
    
public static  booleanisAlphanumeric(String str)
    
public static  booleanisEmpty(String str)
    
public static  booleanisNotEmpty(String str)
    
public  booleanisUserAuthenticated()
    
public  booleanisUserAuthorizedToAdmin(WebsiteDataWrapper weblog)
    
public  booleanisUserAuthorizedToAuthor(WebsiteDataWrapper weblog)
    
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  String[]stripAll(String[] strs)
    
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)
    
public static  StringunescapeXML(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.



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.



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)



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



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



escapeXML
public static String escapeXML(String str)(Code)



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



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



formatDate
public static String formatDate(Date d, String fmt, TimeZone tzOverride)(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.



getModelName
public String getModelName()(Code)
Template context name to be used for model



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



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



init
public void init(Map initData) throws RollerException(Code)
Init page model based on request



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



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



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



isUserAuthenticated
public boolean isUserAuthenticated()(Code)



isUserAuthorizedToAdmin
public boolean isUserAuthorizedToAdmin(WebsiteDataWrapper weblog)(Code)



isUserAuthorizedToAuthor
public boolean isUserAuthorizedToAuthor(WebsiteDataWrapper weblog)(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)



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



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)



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

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