Java Doc for FileHelper.java in  » ESB » open-esb » com » sun » jbi » management » 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 » open esb » com.sun.jbi.management.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.jbi.management.util.FileHelper

FileHelper
public class FileHelper (Code)

author:
   Sun Microsystems, Inc


Field Summary
static  char[]b32Chars
     Mapping of 5-bit integers to characters.


Method Summary
public static  booleanareFilesIdentical(File f1, File f2)
     Compare two files for equality.
public static  booleancleanDirectory(File dir)
     Removes all files and child directories in the specified directory.
public static  booleancopy(String from, String to)
    
public static  booleancreateFile(File file)
     Create a File.
public static  booleancreateFolder(File folder)
     Create a Foldr.
public static  booleanfileCopy(String source, String destination)
     Make a copy of the source file in the destination file.
public static  booleanfileCopy(String source, String destination, boolean overwrite)
     Make a copy of the source file in the destination file.
public static  StringfileFingerprint(File file)
     Compute the fingerprint for a file.
public static  voidfinalizeDiscardedObjects()
    
public static  StringgetTimestamp()
    
public static  StringreadFile(File aFile)
     Read the file into a String and return the String value.

Field Detail
b32Chars
static char[] b32Chars(Code)
Mapping of 5-bit integers to characters. Ambiguous characters like (0, 1, O) are skipped.





Method Detail
areFilesIdentical
public static boolean areFilesIdentical(File f1, File f2) throws java.io.IOException(Code)
Compare two files for equality. The two files are equal if the binary contents of of each of the files are identical.



cleanDirectory
public static boolean cleanDirectory(File dir)(Code)
Removes all files and child directories in the specified directory. false if unable to delete the file



copy
public static boolean copy(String from, String to) throws java.io.IOException(Code)
This method is used to perform directory copy
Parameters:
  from - path to the source dir
Parameters:
  to - path to the destination dir false if the dir could not be copied
throws:
  IOException - if there are problems in copying the fir



createFile
public static boolean createFile(File file)(Code)
Create a File. If the parent dirs don't exist create those first.
Parameters:
  file - - File to Create. true if the File was created, false otherwise.



createFolder
public static boolean createFolder(File folder)(Code)
Create a Foldr. If the parent dirs don't exist create those first.
Parameters:
  folder - - folder to Create. true if the File was created, false otherwise.



fileCopy
public static boolean fileCopy(String source, String destination) throws java.io.IOException(Code)
Make a copy of the source file in the destination file.
Parameters:
  source - the source file
Parameters:
  destination - the destination file true if the operation was a success, false otherwise



fileCopy
public static boolean fileCopy(String source, String destination, boolean overwrite) throws java.io.IOException(Code)
Make a copy of the source file in the destination file.
Parameters:
  source - the source file
Parameters:
  destination - the destination file
Parameters:
  overwrite - true if the destination file can be overwritten if it exists true if the operation was a success, false otherwise



fileFingerprint
public static String fileFingerprint(File file) throws java.io.IOException(Code)
Compute the fingerprint for a file. fingerprint



finalizeDiscardedObjects
public static void finalizeDiscardedObjects()(Code)
Reclaim memory, run object finalizers



getTimestamp
public static String getTimestamp()(Code)
This method is used to create a timestamp that could be used to create file names String representation of the current time in yyyyMMddHHmm pattern



readFile
public static String readFile(File aFile) throws Exception(Code)
Read the file into a String and return the String value. the contents of the file as a String



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.