Java Doc for FileUtil.java in  » Portal » liferay-portal-4.4.2 » com » liferay » 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 » Portal » liferay portal 4.4.2 » com.liferay.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.liferay.util.FileUtil

FileUtil
public class FileUtil (Code)
View Source
author:
   Brian Wing Shun Chan
author:
   Alexander Chow


Field Summary
final public static  StringENCODING
    


Method Summary
public static  voidappend(String fileName, String s)
    
public static  voidappend(String pathName, String fileName, String s)
    
public static  voidappend(File file, String s)
    
public static  voidcopyDirectory(String sourceDirName, String destinationDirName)
    
public static  voidcopyDirectory(File source, File destination)
    
public static  voidcopyFile(String source, String destination)
    
public static  voidcopyFile(String source, String destination, boolean lazy)
    
public static  voidcopyFile(File source, File destination)
    
public static  voidcopyFile(File source, File destination, boolean lazy)
    
public static  booleandelete(String file)
    
public static  booleandelete(File file)
    
public static  voiddeltree(String directory)
    
public static  voiddeltree(File directory)
    
public static  booleanexists(String fileName)
    
public static  booleanexists(File file)
    
public static  StringgetAbsolutePath(File file)
    
public static  byte[]getBytes(File file)
    
public static  byte[]getBytes(InputStream in)
    
public static  byte[]getBytes(InputStream in, int bufferSize)
    
public static  StringgetExtension(String fileName)
    
public static  StringgetPath(String fullFileName)
    
public static  StringgetShortFileName(String fullFileName)
    
public static  String[]listDirs(String fileName)
    
public static  String[]listDirs(File file)
    
public static  String[]listFiles(String fileName)
    
public static  String[]listFiles(File file)
    
public static  voidmkdirs(String pathName)
    
public static  booleanmove(String sourceFileName, String destinationFileName)
    
public static  booleanmove(File source, File destination)
    
public static  Stringread(String fileName)
    
public static  Stringread(File file)
    
public static  Stringread(File file, boolean raw)
    
public static  Stringread(File file, String encoding, boolean raw)
    
public static  StringreplaceSeparator(String fileName)
    
public static  File[]sortFiles(File[] files)
    
public static  ListtoList(Reader reader)
    
public static  ListtoList(String fileName)
    
public static  PropertiestoProperties(FileInputStream fis)
    
public static  PropertiestoProperties(String fileName)
    
public static  voidwrite(String fileName, String s)
    
public static  voidwrite(String fileName, String s, boolean lazy)
    
public static  voidwrite(String pathName, String fileName, String s)
    
public static  voidwrite(String pathName, String fileName, String s, boolean lazy)
    
public static  voidwrite(File file, String s)
    
public static  voidwrite(File file, String s, boolean lazy)
    
public static  voidwrite(File file, String s, boolean lazy, boolean append)
    
public static  voidwrite(String fileName, byte[] byteArray)
    
public static  voidwrite(File file, byte[] byteArray)
    
public static  voidwrite(String fileName, InputStream in)
    
public static  voidwrite(File file, InputStream in)
    

Field Detail
ENCODING
final public static String ENCODING(Code)





Method Detail
append
public static void append(String fileName, String s) throws IOException(Code)



append
public static void append(String pathName, String fileName, String s) throws IOException(Code)



append
public static void append(File file, String s) throws IOException(Code)



copyDirectory
public static void copyDirectory(String sourceDirName, String destinationDirName)(Code)



copyDirectory
public static void copyDirectory(File source, File destination)(Code)



copyFile
public static void copyFile(String source, String destination)(Code)



copyFile
public static void copyFile(String source, String destination, boolean lazy)(Code)



copyFile
public static void copyFile(File source, File destination)(Code)



copyFile
public static void copyFile(File source, File destination, boolean lazy)(Code)



delete
public static boolean delete(String file)(Code)



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



deltree
public static void deltree(String directory)(Code)



deltree
public static void deltree(File directory)(Code)



exists
public static boolean exists(String fileName)(Code)



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



getAbsolutePath
public static String getAbsolutePath(File file)(Code)



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



getBytes
public static byte[] getBytes(InputStream in) throws IOException(Code)



getBytes
public static byte[] getBytes(InputStream in, int bufferSize) throws IOException(Code)



getExtension
public static String getExtension(String fileName)(Code)



getPath
public static String getPath(String fullFileName)(Code)



getShortFileName
public static String getShortFileName(String fullFileName)(Code)



listDirs
public static String[] listDirs(String fileName) throws IOException(Code)



listDirs
public static String[] listDirs(File file) throws IOException(Code)



listFiles
public static String[] listFiles(String fileName) throws IOException(Code)



listFiles
public static String[] listFiles(File file) throws IOException(Code)



mkdirs
public static void mkdirs(String pathName)(Code)



move
public static boolean move(String sourceFileName, String destinationFileName)(Code)



move
public static boolean move(File source, File destination)(Code)



read
public static String read(String fileName) throws IOException(Code)



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



read
public static String read(File file, boolean raw) throws IOException(Code)



read
public static String read(File file, String encoding, boolean raw) throws IOException(Code)



replaceSeparator
public static String replaceSeparator(String fileName)(Code)



sortFiles
public static File[] sortFiles(File[] files)(Code)



toList
public static List toList(Reader reader)(Code)



toList
public static List toList(String fileName)(Code)



toProperties
public static Properties toProperties(FileInputStream fis)(Code)



toProperties
public static Properties toProperties(String fileName)(Code)



write
public static void write(String fileName, String s) throws IOException(Code)



write
public static void write(String fileName, String s, boolean lazy) throws IOException(Code)



write
public static void write(String pathName, String fileName, String s) throws IOException(Code)



write
public static void write(String pathName, String fileName, String s, boolean lazy) throws IOException(Code)



write
public static void write(File file, String s) throws IOException(Code)



write
public static void write(File file, String s, boolean lazy) throws IOException(Code)



write
public static void write(File file, String s, boolean lazy, boolean append) throws IOException(Code)



write
public static void write(String fileName, byte[] byteArray) throws IOException(Code)



write
public static void write(File file, byte[] byteArray) throws IOException(Code)



write
public static void write(String fileName, InputStream in) throws IOException(Code)



write
public static void write(File file, InputStream in) 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.