Java Doc for Utilities.java in  » Wiki-Engine » VeryQuickWiki » vqwiki » utils » 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 » Wiki Engine » VeryQuickWiki » vqwiki.utils 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   vqwiki.utils.Utilities

Utilities
public class Utilities (Code)




Method Summary
public static  booleancheckValidTopicName(String name)
    
public static  booleancontainsStringIgnoreCase(Collection collection, String string)
    
public static  StringconvertEntities(String text)
    
public static  DateconvertFileFriendlyDate(String filename)
    
public static  StringconvertLineFeeds(String text)
    
public static  StringconvertTabs(String text)
    
final public static  voidcopyInputStream(InputStream in, OutputStream out)
    
public static  CookiecreateUsernameCookie(String username)
    
public static  StringdecodeSafeFileName(String name)
     Converts back file name encoded by encodeSafeFileName().
public static  StringencodeSafeExportFileName(String name)
    
public static  StringencodeSafeFileName(String name)
     Converts arbitrary string into string usable as file name.
public static  StringextractTrailingPunctuation(String text)
     Returns any trailing .
public static  StringextractVirtualWiki(HttpServletRequest request)
     Extracts the virtual wiki from the URL path.
public static  StringextractVirtualWiki(String path)
    
public static  StringfileFriendlyDate(Date date)
    
public static  StringformatDate(Date date)
    
public static  StringformatDateTime(Date date)
    
public static  StringgetDirectoryFromPath(String path)
    
public static  StringgetUserFromRequest(HttpServletRequest request)
    
public static  booleanisAVirtualWiki(String virtualWiki)
    
public static  booleanisAdmin(HttpServletRequest request)
    
protected static  StringpadTensWithZero(int n)
    
public static  DocumentparseDocumentFromFile(String fileName)
    
public static  DocumentparseDocumentFromInputStream(InputStream xmlIn)
    
public static  StringBufferreadFile(File file)
    
public static  StringreplaceString(String text, String find, String replace)
    
public static  Stringresource(String key, Locale locale)
     Return a String from the ApplicationResources.
public static  Stringsep()
    
public static  StringseparateWords(String text)
     Converts CamelCase to seperate words.
public static  voidunzip(File zipFileToOpen, File outputDirectory)
    



Method Detail
checkValidTopicName
public static boolean checkValidTopicName(String name)(Code)



containsStringIgnoreCase
public static boolean containsStringIgnoreCase(Collection collection, String string)(Code)
Returns true if the given collection of strings contains the given string where the case of either is ignored
Parameters:
  collection - collection of Strings
Parameters:
  string - string to find true if the string is in the collection with no regard to case



convertEntities
public static String convertEntities(String text) throws Exception(Code)
Converts HTML integer unicode entities into characters
Parameters:
  text -
throws:
  java.lang.Exception -



convertFileFriendlyDate
public static Date convertFileFriendlyDate(String filename)(Code)
Convert the filename-friendly date format back to a Java date



convertLineFeeds
public static String convertLineFeeds(String text)(Code)



convertTabs
public static String convertTabs(String text)(Code)
Convert 3 consecutive spaces to a tab character



copyInputStream
final public static void copyInputStream(InputStream in, OutputStream out) throws IOException(Code)



createUsernameCookie
public static Cookie createUsernameCookie(String username)(Code)



decodeSafeFileName
public static String decodeSafeFileName(String name)(Code)
Converts back file name encoded by encodeSafeFileName().



encodeSafeExportFileName
public static String encodeSafeExportFileName(String name)(Code)



encodeSafeFileName
public static String encodeSafeFileName(String name)(Code)
Converts arbitrary string into string usable as file name.



extractTrailingPunctuation
public static String extractTrailingPunctuation(String text)(Code)
Returns any trailing . , ; : characters on the given string
Parameters:
  text - empty string if none are found



extractVirtualWiki
public static String extractVirtualWiki(HttpServletRequest request) throws Exception(Code)
Extracts the virtual wiki from the URL path. Defaults to the default wiki if there's trouble.



extractVirtualWiki
public static String extractVirtualWiki(String path) throws Exception(Code)



fileFriendlyDate
public static String fileFriendlyDate(Date date)(Code)
Convert Java date to a file-friendly date



formatDate
public static String formatDate(Date date)(Code)
Localised



formatDateTime
public static String formatDateTime(Date date)(Code)



getDirectoryFromPath
public static String getDirectoryFromPath(String path)(Code)



getUserFromRequest
public static String getUserFromRequest(HttpServletRequest request)(Code)



isAVirtualWiki
public static boolean isAVirtualWiki(String virtualWiki)(Code)
checks the string parameter against there virtual wiki list



isAdmin
public static boolean isAdmin(HttpServletRequest request)(Code)



padTensWithZero
protected static String padTensWithZero(int n)(Code)



parseDocumentFromFile
public static Document parseDocumentFromFile(String fileName) throws Exception(Code)
Use standard factory to create DocumentBuilder and parse a file



parseDocumentFromInputStream
public static Document parseDocumentFromInputStream(InputStream xmlIn) throws IOException, SAXException, ParserConfigurationException(Code)
Parse DOM document from XML in input stream
Parameters:
  xmlIn -
throws:
  IOException -
throws:
  SAXException -
throws:
  ParserConfigurationException -



readFile
public static StringBuffer readFile(File file)(Code)
Read a file from the file system
Parameters:
  file - The file to read a Stringbuffer with the content of this file or an empty StringBuffer, if an error has occured



replaceString
public static String replaceString(String text, String find, String replace)(Code)
Replaces occurences of the find string with the replace string in the given text
Parameters:
  text -
Parameters:
  find -
Parameters:
  replace - the altered string



resource
public static String resource(String key, Locale locale)(Code)
Return a String from the ApplicationResources. The ApplicationResources contains all text, links, etc. which may be language specific and is located in the classes folder.
Parameters:
  key - The key to get.
Parameters:
  locale - The locale to use. String containing the requested text.



sep
public static String sep()(Code)



separateWords
public static String separateWords(String text)(Code)
Converts CamelCase to seperate words.
author:
   cmeans



unzip
public static void unzip(File zipFileToOpen, File outputDirectory)(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.