Java Doc for FileUtils.java in  » Database-DBMS » h2database » org » h2 » 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 » Database DBMS » h2database » org.h2.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.h2.util.FileUtils

FileUtils
public class FileUtils (Code)
This utility class supports basic operations on files




Method Summary
public static  voidcreateDirs(String fileName)
    
public static  StringcreateTempFile(String prefix, String suffix, boolean deleteOnExit, boolean inTempDir)
     Create a new temporary file.
public static  voiddelete(String fileName)
    
public static  booleanexists(String fileName)
    
public static  booleanfileStartsWith(String fileName, String prefix)
    
public static  StringgetAbsolutePath(String fileName)
    
public static  booleangetBooleanProperty(Properties prop, String key, boolean def)
    
public static  StringgetFileInUserHome(String fileName)
    
public static  StringgetFileName(String name)
    
public static  intgetIntProperty(Properties prop, String key, int def)
    
public static  StringgetParent(String fileName)
    
public static  booleanisAbsolute(String fileName)
    
public static  booleanisDirectory(String fileName)
    
public static  booleanisReadOnly(String fileName)
    
public static  longlength(String fileName)
    
public static  String[]listFiles(String path)
    
public static synchronized  PropertiesloadProperties(String fileName)
    
public static  Stringnormalize(String fileName)
    
public static  InputStreamopenFileInputStream(String fileName)
    
public static  OutputStreamopenFileOutputStream(String fileName, boolean append)
    
public static  WriteropenFileWriter(String fileName, boolean append)
    
public static  voidrename(String oldName, String newName)
    
public static  voidsetLength(RandomAccessFile file, long newLength)
    
public static  voidtrace(String method, String fileName, Object o)
    
public static  voidtryDelete(String fileName)
    



Method Detail
createDirs
public static void createDirs(String fileName) throws SQLException(Code)



createTempFile
public static String createTempFile(String prefix, String suffix, boolean deleteOnExit, boolean inTempDir) throws IOException, SQLException(Code)
Create a new temporary file.
Parameters:
  prefix - the prefix of the file name (including directory name ifrequired)
Parameters:
  suffix - the suffix
Parameters:
  deleteOnExit - if the file should be deleted when the virtualmachine exists
Parameters:
  inTempDir - if the file should be stored in the temporary directory the name of the created file



delete
public static void delete(String fileName) throws SQLException(Code)



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



fileStartsWith
public static boolean fileStartsWith(String fileName, String prefix)(Code)



getAbsolutePath
public static String getAbsolutePath(String fileName)(Code)



getBooleanProperty
public static boolean getBooleanProperty(Properties prop, String key, boolean def)(Code)



getFileInUserHome
public static String getFileInUserHome(String fileName)(Code)



getFileName
public static String getFileName(String name) throws SQLException(Code)



getIntProperty
public static int getIntProperty(Properties prop, String key, int def)(Code)



getParent
public static String getParent(String fileName)(Code)



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



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



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



length
public static long length(String fileName)(Code)



listFiles
public static String[] listFiles(String path) throws SQLException(Code)



loadProperties
public static synchronized Properties loadProperties(String fileName) throws IOException(Code)



normalize
public static String normalize(String fileName) throws SQLException(Code)



openFileInputStream
public static InputStream openFileInputStream(String fileName) throws IOException(Code)



openFileOutputStream
public static OutputStream openFileOutputStream(String fileName, boolean append) throws SQLException(Code)



openFileWriter
public static Writer openFileWriter(String fileName, boolean append) throws SQLException(Code)



rename
public static void rename(String oldName, String newName) throws SQLException(Code)



setLength
public static void setLength(RandomAccessFile file, long newLength) throws IOException(Code)



trace
public static void trace(String method, String fileName, Object o)(Code)



tryDelete
public static void tryDelete(String fileName)(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.