Java Doc for FileUtils.java in  » IDE-Netbeans » nbi » org » netbeans » installer » 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 » IDE Netbeans » nbi » org.netbeans.installer.utils 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.installer.utils.FileUtils

FileUtils
final public class FileUtils (Code)

author:
   Kirill Sorokin


Field Summary
final public static  StringBACKSLASH
    
final public static  intBUFFER_SIZE
    
final public static  StringCURRENT
    
final public static  StringERROR_CANT_CLOSE_JAR_KEY
    
final public static  StringERROR_CANT_CREATE_DIR_EXIST_FILE_KEY
    
final public static  StringERROR_CANT_CREATE_DIR_KEY
    
final public static  StringERROR_CANT_GET_FREE_SPACE_KEY
    
final public static  StringERROR_CLOSE_STREAM_KEY
    
final public static  StringERROR_DEST_CREATION_KEY
    
final public static  StringERROR_DEST_NOT_FILE_KEY
    
final public static  StringERROR_DEST_NOT_WRITABLE_KEY
    
final public static  StringERROR_FILE_SECURITY_EXCEPTION_KEY
    
final public static  StringERROR_LOAD_XML_FILE_LIST_KEY
    
final public static  StringERROR_MD5_NOT_SUPPORTED_KEY
    
final public static  StringERROR_NOT_JAR_FILE_KEY
    
final public static  StringERROR_OUTPUT_DIR_ENTRY_KEY
    
final public static  StringERROR_OUTPUT_FILE_ENTRY_KEY
    
final public static  StringERROR_PACK200_FAILED_KEY
    
final public static  StringERROR_SHA1_NOT_SUPPORTED_KEY
    
final public static  StringERROR_SOURCE_NOT_READABLE_KEY
    
final public static  StringERROR_UNJAR_TODIR_KEY
    
final public static  StringERROR_UNPACK200_FAILED_KEY
    
final public static  StringFILES_LIST_ENTRY
    
final public static  StringINFO_PLIST_STUB
    
final public static  StringJAR_EXTENSION
    
final public static  StringMD5_DIGEST_NAME
    
final public static  StringMESSAGE_COPY_DIRECTORY
    
final public static  StringMESSAGE_COPY_FILE
    
final public static  StringMESSAGE_DELETE_DIR
    
final public static  StringMESSAGE_DELETE_FILE
    
final public static  StringMESSAGE_EXTRACTING
    
final public static  StringMESSAGE_MOVING
    
final public static  StringMETAINF_MASK
    
final public static  StringPACK_GZ_SUFFIX
    
final public static  StringPARENT
    
final public static  StringPROPERTIES_EXTENSION
    
final public static  StringSHA1_DIGEST_NAME
    
final public static  StringSLASH
    
final public static  StringSUN_MICR_RSA
    
final public static  StringSUN_MICR_SF
    


Method Summary
public static  FilesListappendFile(File file, CharSequence string)
    
public static  FilesListappendFile(File file, CharSequence string, String charset)
    
public static  FilesListappendFile(File file, InputStream input)
    
public static  booleancanRead(File file)
    
public static  booleancanWrite(File file)
    
public static  FilesListcopyFile(File source, File target)
    
public static  FilesListcopyFile(File source, File target, Progress progress)
    
public static  FilesListcopyFile(File source, File target, boolean recurse)
    
public static  FilesListcopyFile(File source, File target, boolean recurse, Progress progress)
    
public static  longcountChildren(File file)
    
public static  FilecreateTempFile()
    
public static  FilecreateTempFile(File parent)
    
public static  FilecreateTempFile(File parent, boolean create)
    
public static  FilecreateTempFile(File parent, boolean create, boolean directory)
    
public static  voiddeleteEmptyParents(File file)
    
public static  voiddeleteFile(File file)
    
public static  voiddeleteFile(File file, Progress progress)
    
public static  voiddeleteFile(File file, boolean recurse)
    
public static  voiddeleteFile(File file, boolean recurse, Progress progress)
    
public static  voiddeleteFiles(List<File> files)
    
public static  voiddeleteFiles(List<File> files, Progress progress)
    
public static  voiddeleteFiles(File... files)
    
public static  voiddeleteFiles(Progress progress, File... files)
    
public static  voiddeleteFiles(FilesList files)
    
public static  voiddeleteFiles(FilesList files, Progress progress)
    
public static  voiddeleteOnExit(File file)
    
public static  voiddeleteWithEmptyParents(File file)
    
public static  FileeliminateRelativity(String path)
    
public static  booleanexists(File file)
    
public static  FileextractJarEntry(String entry, File source)
    
public static  FileextractJarEntry(String entry, File source, File target)
    
public static  FilefindFile(File directory, String filename)
    
public static  longgetCrc32(File file)
    
public static  longgetCrc32(InputStream input)
    
public static  byte[]getDigestBytes(File file, String algorithm)
    
public static  byte[]getDigestBytes(InputStream input, String algorithm)
    
public static  longgetFreeSpace(File file)
    
public static  StringgetJarAttribute(File file, String name)
    
public static  DategetLastModified(File file)
    
public static  StringgetMd5(File file)
    
public static  StringgetMd5(InputStream input)
    
public static  byte[]getMd5Bytes(File file)
    
public static  byte[]getMd5Bytes(InputStream input)
    
public static  StringgetRelativePath(File source, File target)
    
public static  FilegetRoot(File fileRequested, List<File> roots)
    
public static  FilegetRoot(File file)
    
public static  StringgetSha1(File file)
    
public static  byte[]getSha1Bytes(File file)
    
public static  longgetSize(File file)
    
public static  booleanisEmpty(File file)
    
public static  booleanisJarFile(File file)
    
public static  booleanisParent(File candidate, File file)
    
public static  booleanisSigned(File file)
    
public static  booleanisUNCPath(String path)
    
public static  booleanjarEntryExists(File file, String entry)
    
public static  FilesListmkdirs(File file)
    
public static  voidmodifyFile(File file, String token, Object replacement)
    
public static  voidmodifyFile(File file, String token, Object replacement, boolean regexp)
    
public static  voidmodifyFile(File file, Map<String, Object> map)
    
public static  voidmodifyFile(File file, Map<String, Object> map, boolean regexp)
    
public static  voidmodifyFiles(List<File> files, Map<String, Object> map, boolean regexp)
    
public static  voidmodifyFiles(List<File> files, Map<String, Object> map, boolean regexp, Progress progress)
    
public static  FilesListmoveFile(File source, File target)
    
public static  FilesListmoveFile(File source, File target, Progress progress)
    
public static  Filepack(File source)
    
public static  StringreadFile(File file)
    
public static  StringreadFirstLine(File file)
    
public static  List<String>readStringList(File file)
    
public static  FilesListunjar(File source, File target)
    
public static  FilesListunjar(File source, File target, Progress progress)
    
public static  Fileunpack(File source)
    
public static  FilesListunzip(File source, File target)
    
public static  FilesListunzip(File source, File target, Progress progress)
    
public static  FilesListwriteFile(File file, CharSequence string)
    
public static  FilesListwriteFile(File file, CharSequence string, String charset)
    
public static  FilesListwriteFile(File file, CharSequence string, boolean append)
    
public static  FilesListwriteFile(File file, CharSequence string, String charset, boolean append)
    
public static  FilesListwriteFile(File file, InputStream input)
    
public static  FilesListwriteFile(File file, InputStream input, boolean append)
    
public static  FilesListwriteStringList(File file, List<String> list)
    
public static  FilesListwriteStringList(File file, List<String> list, String charset)
    
public static  FilesListwriteStringList(File file, List<String> list, boolean append)
    
public static  FilesListwriteStringList(File file, List<String> list, String charset, boolean append)
    
public static  voidzip(File file, ZipOutputStream output, File root, List<File> excludes)
    
public static  booleanzipEntryExists(File file, String entry)
    

Field Detail
BACKSLASH
final public static String BACKSLASH(Code)



BUFFER_SIZE
final public static int BUFFER_SIZE(Code)



CURRENT
final public static String CURRENT(Code)



ERROR_CANT_CLOSE_JAR_KEY
final public static String ERROR_CANT_CLOSE_JAR_KEY(Code)



ERROR_CANT_CREATE_DIR_EXIST_FILE_KEY
final public static String ERROR_CANT_CREATE_DIR_EXIST_FILE_KEY(Code)



ERROR_CANT_CREATE_DIR_KEY
final public static String ERROR_CANT_CREATE_DIR_KEY(Code)



ERROR_CANT_GET_FREE_SPACE_KEY
final public static String ERROR_CANT_GET_FREE_SPACE_KEY(Code)



ERROR_CLOSE_STREAM_KEY
final public static String ERROR_CLOSE_STREAM_KEY(Code)



ERROR_DEST_CREATION_KEY
final public static String ERROR_DEST_CREATION_KEY(Code)



ERROR_DEST_NOT_FILE_KEY
final public static String ERROR_DEST_NOT_FILE_KEY(Code)



ERROR_DEST_NOT_WRITABLE_KEY
final public static String ERROR_DEST_NOT_WRITABLE_KEY(Code)



ERROR_FILE_SECURITY_EXCEPTION_KEY
final public static String ERROR_FILE_SECURITY_EXCEPTION_KEY(Code)



ERROR_LOAD_XML_FILE_LIST_KEY
final public static String ERROR_LOAD_XML_FILE_LIST_KEY(Code)



ERROR_MD5_NOT_SUPPORTED_KEY
final public static String ERROR_MD5_NOT_SUPPORTED_KEY(Code)



ERROR_NOT_JAR_FILE_KEY
final public static String ERROR_NOT_JAR_FILE_KEY(Code)



ERROR_OUTPUT_DIR_ENTRY_KEY
final public static String ERROR_OUTPUT_DIR_ENTRY_KEY(Code)



ERROR_OUTPUT_FILE_ENTRY_KEY
final public static String ERROR_OUTPUT_FILE_ENTRY_KEY(Code)



ERROR_PACK200_FAILED_KEY
final public static String ERROR_PACK200_FAILED_KEY(Code)



ERROR_SHA1_NOT_SUPPORTED_KEY
final public static String ERROR_SHA1_NOT_SUPPORTED_KEY(Code)



ERROR_SOURCE_NOT_READABLE_KEY
final public static String ERROR_SOURCE_NOT_READABLE_KEY(Code)



ERROR_UNJAR_TODIR_KEY
final public static String ERROR_UNJAR_TODIR_KEY(Code)



ERROR_UNPACK200_FAILED_KEY
final public static String ERROR_UNPACK200_FAILED_KEY(Code)



FILES_LIST_ENTRY
final public static String FILES_LIST_ENTRY(Code)



INFO_PLIST_STUB
final public static String INFO_PLIST_STUB(Code)



JAR_EXTENSION
final public static String JAR_EXTENSION(Code)



MD5_DIGEST_NAME
final public static String MD5_DIGEST_NAME(Code)



MESSAGE_COPY_DIRECTORY
final public static String MESSAGE_COPY_DIRECTORY(Code)



MESSAGE_COPY_FILE
final public static String MESSAGE_COPY_FILE(Code)



MESSAGE_DELETE_DIR
final public static String MESSAGE_DELETE_DIR(Code)



MESSAGE_DELETE_FILE
final public static String MESSAGE_DELETE_FILE(Code)



MESSAGE_EXTRACTING
final public static String MESSAGE_EXTRACTING(Code)



MESSAGE_MOVING
final public static String MESSAGE_MOVING(Code)



METAINF_MASK
final public static String METAINF_MASK(Code)



PACK_GZ_SUFFIX
final public static String PACK_GZ_SUFFIX(Code)



PARENT
final public static String PARENT(Code)



PROPERTIES_EXTENSION
final public static String PROPERTIES_EXTENSION(Code)



SHA1_DIGEST_NAME
final public static String SHA1_DIGEST_NAME(Code)



SLASH
final public static String SLASH(Code)



SUN_MICR_RSA
final public static String SUN_MICR_RSA(Code)



SUN_MICR_SF
final public static String SUN_MICR_SF(Code)





Method Detail
appendFile
public static FilesList appendFile(File file, CharSequence string) throws IOException(Code)



appendFile
public static FilesList appendFile(File file, CharSequence string, String charset) throws IOException(Code)



appendFile
public static FilesList appendFile(File file, InputStream input) throws IOException(Code)



canRead
public static boolean canRead(File file)(Code)



canWrite
public static boolean canWrite(File file)(Code)



copyFile
public static FilesList copyFile(File source, File target) throws IOException(Code)



copyFile
public static FilesList copyFile(File source, File target, Progress progress) throws IOException(Code)



copyFile
public static FilesList copyFile(File source, File target, boolean recurse) throws IOException(Code)



copyFile
public static FilesList copyFile(File source, File target, boolean recurse, Progress progress) throws IOException(Code)



countChildren
public static long countChildren(File file)(Code)



createTempFile
public static File createTempFile() throws IOException(Code)



createTempFile
public static File createTempFile(File parent) throws IOException(Code)



createTempFile
public static File createTempFile(File parent, boolean create) throws IOException(Code)



createTempFile
public static File createTempFile(File parent, boolean create, boolean directory) throws IOException(Code)



deleteEmptyParents
public static void deleteEmptyParents(File file) throws IOException(Code)



deleteFile
public static void deleteFile(File file) throws IOException(Code)



deleteFile
public static void deleteFile(File file, Progress progress) throws IOException(Code)



deleteFile
public static void deleteFile(File file, boolean recurse) throws IOException(Code)



deleteFile
public static void deleteFile(File file, boolean recurse, Progress progress) throws IOException(Code)



deleteFiles
public static void deleteFiles(List<File> files) throws IOException(Code)



deleteFiles
public static void deleteFiles(List<File> files, Progress progress) throws IOException(Code)



deleteFiles
public static void deleteFiles(File... files) throws IOException(Code)



deleteFiles
public static void deleteFiles(Progress progress, File... files) throws IOException(Code)



deleteFiles
public static void deleteFiles(FilesList files) throws IOException(Code)



deleteFiles
public static void deleteFiles(FilesList files, Progress progress) throws IOException(Code)



deleteOnExit
public static void deleteOnExit(File file)(Code)



deleteWithEmptyParents
public static void deleteWithEmptyParents(File file) throws IOException(Code)



eliminateRelativity
public static File eliminateRelativity(String path)(Code)



exists
public static boolean exists(File file)(Code)



extractJarEntry
public static File extractJarEntry(String entry, File source) throws IOException(Code)



extractJarEntry
public static File extractJarEntry(String entry, File source, File target) throws IOException(Code)



findFile
public static File findFile(File directory, String filename)(Code)



getCrc32
public static long getCrc32(File file) throws IOException(Code)



getCrc32
public static long getCrc32(InputStream input) throws IOException(Code)



getDigestBytes
public static byte[] getDigestBytes(File file, String algorithm) throws IOException, NoSuchAlgorithmException(Code)



getDigestBytes
public static byte[] getDigestBytes(InputStream input, String algorithm) throws IOException, NoSuchAlgorithmException(Code)



getFreeSpace
public static long getFreeSpace(File file)(Code)



getJarAttribute
public static String getJarAttribute(File file, String name) throws IOException(Code)



getLastModified
public static Date getLastModified(File file)(Code)



getMd5
public static String getMd5(File file) throws IOException(Code)



getMd5
public static String getMd5(InputStream input) throws IOException(Code)



getMd5Bytes
public static byte[] getMd5Bytes(File file) throws IOException(Code)



getMd5Bytes
public static byte[] getMd5Bytes(InputStream input) throws IOException(Code)



getRelativePath
public static String getRelativePath(File source, File target)(Code)



getRoot
public static File getRoot(File fileRequested, List<File> roots)(Code)



getRoot
public static File getRoot(File file)(Code)



getSha1
public static String getSha1(File file) throws IOException(Code)



getSha1Bytes
public static byte[] getSha1Bytes(File file) throws IOException(Code)



getSize
public static long getSize(File file)(Code)



isEmpty
public static boolean isEmpty(File file)(Code)



isJarFile
public static boolean isJarFile(File file)(Code)



isParent
public static boolean isParent(File candidate, File file)(Code)



isSigned
public static boolean isSigned(File file) throws IOException(Code)



isUNCPath
public static boolean isUNCPath(String path)(Code)



jarEntryExists
public static boolean jarEntryExists(File file, String entry) throws IOException(Code)



mkdirs
public static FilesList mkdirs(File file) throws IOException(Code)



modifyFile
public static void modifyFile(File file, String token, Object replacement) throws IOException(Code)



modifyFile
public static void modifyFile(File file, String token, Object replacement, boolean regexp) throws IOException(Code)



modifyFile
public static void modifyFile(File file, Map<String, Object> map) throws IOException(Code)



modifyFile
public static void modifyFile(File file, Map<String, Object> map, boolean regexp) throws IOException(Code)



modifyFiles
public static void modifyFiles(List<File> files, Map<String, Object> map, boolean regexp) throws IOException(Code)



modifyFiles
public static void modifyFiles(List<File> files, Map<String, Object> map, boolean regexp, Progress progress) throws IOException(Code)



moveFile
public static FilesList moveFile(File source, File target) throws IOException(Code)



moveFile
public static FilesList moveFile(File source, File target, Progress progress) throws IOException(Code)



pack
public static File pack(File source) throws IOException(Code)



readFile
public static String readFile(File file) throws IOException(Code)



readFirstLine
public static String readFirstLine(File file) throws IOException(Code)



readStringList
public static List<String> readStringList(File file) throws IOException(Code)



unjar
public static FilesList unjar(File source, File target) throws IOException, XMLException(Code)



unjar
public static FilesList unjar(File source, File target, Progress progress) throws IOException, XMLException(Code)



unpack
public static File unpack(File source) throws IOException(Code)



unzip
public static FilesList unzip(File source, File target) throws IOException(Code)



unzip
public static FilesList unzip(File source, File target, Progress progress) throws IOException(Code)



writeFile
public static FilesList writeFile(File file, CharSequence string) throws IOException(Code)



writeFile
public static FilesList writeFile(File file, CharSequence string, String charset) throws IOException(Code)



writeFile
public static FilesList writeFile(File file, CharSequence string, boolean append) throws IOException(Code)



writeFile
public static FilesList writeFile(File file, CharSequence string, String charset, boolean append) throws IOException(Code)



writeFile
public static FilesList writeFile(File file, InputStream input) throws IOException(Code)



writeFile
public static FilesList writeFile(File file, InputStream input, boolean append) throws IOException(Code)



writeStringList
public static FilesList writeStringList(File file, List<String> list) throws IOException(Code)



writeStringList
public static FilesList writeStringList(File file, List<String> list, String charset) throws IOException(Code)



writeStringList
public static FilesList writeStringList(File file, List<String> list, boolean append) throws IOException(Code)



writeStringList
public static FilesList writeStringList(File file, List<String> list, String charset, boolean append) throws IOException(Code)



zip
public static void zip(File file, ZipOutputStream output, File root, List<File> excludes) throws IOException(Code)



zipEntryExists
public static boolean zipEntryExists(File file, String entry) throws IOException(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.