Java Doc for FileUtil.java in  » Database-DBMS » hsql » org » hsqldb » lib » 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 » hsql » org.hsqldb.lib 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.hsqldb.lib.FileUtil

FileUtil
public class FileUtil implements FileAccess(Code)
A collection of static file management methods.

Also implements the default FileAccess method
author:
   fredt@users
author:
   boucherb@users
author:
   Ocke Janssen oj@openoffice.org
version:
   1.8.0
since:
   1.7.2


Inner Class :public class FileSync implements FileAccess.FileSync

Field Summary
final public static  booleanfsIsIgnoreCase
    
final public static  booleanfsNormalizesPosixSeparator
    
final static  Randomrandom
    

Constructor Summary
 FileUtil()
    

Method Summary
public static  StringabsolutePath(String path)
     Retrieves the absolute path, given some path specification.
public static  FilecanonicalFile(File f)
     Retrieves the canonical file for the given file, in a JDK 1.1 complaint way.
public static  FilecanonicalFile(String path)
     Retrieves the canonical file for the given path, in a JDK 1.1 complaint way.
public static  StringcanonicalOrAbsolutePath(String path)
     Retrieves the canonical path for the given path, or the absolute path if attemting to retrieve the canonical path fails.
public static  StringcanonicalPath(File f)
     Retrieves the canonical path for the given File, in a JDK 1.1 complaint way.
public static  StringcanonicalPath(String path)
     Retrieves the canonical path for the given path, in a JDK 1.1 complaint way.
public  voidcreateParentDirs(java.lang.String filename)
    
public static  voiddelete(String filename)
    
public static  voiddeleteOnExit(File f)
     Requests, in a JDK 1.1 compliant way, that the file or directory denoted by the given abstract pathname be deleted when the virtual machine terminates.
public static  booleanexists(String filename)
     Return true or false based on whether the named file exists.
public static  booleanexists(String fileName, boolean resource, Class cla)
    
public static  FileUtilgetDefaultInstance()
    
public  FileAccess.FileSyncgetFileSync(java.io.OutputStream os)
    
public  booleanisStreamElement(java.lang.String elementName)
    
public static  voidmakeParentDirectories(File f)
    
public  java.io.InputStreamopenInputStreamElement(java.lang.String streamName)
    
public  java.io.OutputStreamopenOutputStreamElement(java.lang.String streamName)
    
public  voidremoveElement(java.lang.String filename)
    
public  voidrenameElement(java.lang.String oldName, java.lang.String newName)
    
public static  voidrenameOverwrite(String oldname, String newname)
     Rename the file with oldname to newname.
public static  IOExceptiontoIOException(Throwable e)
    

Field Detail
fsIsIgnoreCase
final public static boolean fsIsIgnoreCase(Code)



fsNormalizesPosixSeparator
final public static boolean fsNormalizesPosixSeparator(Code)



random
final static Random random(Code)




Constructor Detail
FileUtil
FileUtil()(Code)
Creates a new instance of FileUtil




Method Detail
absolutePath
public static String absolutePath(String path)(Code)
Retrieves the absolute path, given some path specification.
Parameters:
  path - the path for which to retrieve the absolute path the absolute path



canonicalFile
public static File canonicalFile(File f) throws IOException(Code)
Retrieves the canonical file for the given file, in a JDK 1.1 complaint way.
Parameters:
  f - the File for which to retrieve the absolute File the canonical File



canonicalFile
public static File canonicalFile(String path) throws IOException(Code)
Retrieves the canonical file for the given path, in a JDK 1.1 complaint way.
Parameters:
  path - the path for which to retrieve the canonical File the canonical File



canonicalOrAbsolutePath
public static String canonicalOrAbsolutePath(String path)(Code)
Retrieves the canonical path for the given path, or the absolute path if attemting to retrieve the canonical path fails.
Parameters:
  path - the path for which to retrieve the canonical orabsolute path the canonical or absolute path



canonicalPath
public static String canonicalPath(File f) throws IOException(Code)
Retrieves the canonical path for the given File, in a JDK 1.1 complaint way.
Parameters:
  f - the File for which to retrieve the canonical path the canonical path



canonicalPath
public static String canonicalPath(String path) throws IOException(Code)
Retrieves the canonical path for the given path, in a JDK 1.1 complaint way.
Parameters:
  path - the path for which to retrieve the canonical path the canonical path



createParentDirs
public void createParentDirs(java.lang.String filename)(Code)



delete
public static void delete(String filename)(Code)
Delete the named file



deleteOnExit
public static void deleteOnExit(File f)(Code)
Requests, in a JDK 1.1 compliant way, that the file or directory denoted by the given abstract pathname be deleted when the virtual machine terminates.

Deletion will be attempted only for JDK 1.2 and greater runtime environments and only upon normal termination of the virtual machine, as defined by the Java Language Specification.

Once deletion has been sucessfully requested, it is not possible to cancel the request. This method should therefore be used with care.


Parameters:
  f - the abstract pathname of the file be deleted when the virtualmachine terminates




exists
public static boolean exists(String filename)(Code)
Return true or false based on whether the named file exists.



exists
public static boolean exists(String fileName, boolean resource, Class cla)(Code)



getDefaultInstance
public static FileUtil getDefaultInstance()(Code)



getFileSync
public FileAccess.FileSync getFileSync(java.io.OutputStream os) throws java.io.IOException(Code)



isStreamElement
public boolean isStreamElement(java.lang.String elementName)(Code)



makeParentDirectories
public static void makeParentDirectories(File f)(Code)



openInputStreamElement
public java.io.InputStream openInputStreamElement(java.lang.String streamName) throws java.io.IOException(Code)



openOutputStreamElement
public java.io.OutputStream openOutputStreamElement(java.lang.String streamName) throws java.io.IOException(Code)



removeElement
public void removeElement(java.lang.String filename)(Code)



renameElement
public void renameElement(java.lang.String oldName, java.lang.String newName)(Code)



renameOverwrite
public static void renameOverwrite(String oldname, String newname)(Code)
Rename the file with oldname to newname. If a file with newname already exists, it is deleted before the renaming operation proceeds. If a file with oldname does not exist, no file will exist after the operation.



toIOException
public static IOException toIOException(Throwable e)(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.