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


java.lang.Object
   org.h2.store.fs.FileSystem

All known Subclasses:   org.h2.store.fs.FileSystemDisk,  org.h2.store.fs.FileSystemMemory,  org.h2.store.fs.FileSystemDatabase,  org.h2.store.fs.FileSystemZip,
FileSystem
abstract public class FileSystem (Code)
The file system is a storage abstraction.


Field Summary
final public static  StringDB_PREFIX
    
final public static  StringMEMORY_PREFIX
    
final public static  StringMEMORY_PREFIX_LZF
    
final public static  StringZIP_PREFIX
    


Method Summary
abstract public  booleancanWrite(String fileName)
     Check if the file is writable.
abstract public  voidcopy(String original, String copy)
     Copy a file from one directory to another, or to another file.
abstract public  voidcreateDirs(String fileName)
     Create all required directories that are required for this file.
abstract public  booleancreateNewFile(String fileName)
     Create a new file.
abstract public  StringcreateTempFile(String prefix, String suffix, boolean deleteOnExit, boolean inTempDir)
     Create a new temporary file.
abstract public  voiddelete(String fileName)
     Delete a file.
abstract public  voiddeleteRecursive(String directory)
     Delete a directory or file and all subdirectories and files.
abstract public  booleanexists(String fileName)
     Checks if a file exists.
abstract public  booleanfileStartsWith(String fileName, String prefix)
     Check if a file starts with a given prefix.
abstract public  StringgetAbsolutePath(String fileName)
     Get the absolute file name.
abstract public  StringgetFileName(String name)
     Get the file name (without directory part).
public static  FileSystemgetInstance(String fileName)
     Get the file system object.
abstract public  longgetLastModified(String fileName)
    
abstract public  StringgetParent(String fileName)
     Get the parent directory of a file or directory.
abstract public  booleanisAbsolute(String fileName)
     Check if the file name includes a path.
abstract public  booleanisDirectory(String fileName)
     Check if it is a file or a directory.
abstract public  booleanisReadOnly(String fileName)
     Check if a file is read-only.
abstract public  longlength(String fileName)
     Get the length of a file.
abstract public  String[]listFiles(String directory)
     List the files in the given directory.
public  voidmkdirs(String directoryName)
     Create all required directories.
abstract public  Stringnormalize(String fileName)
     Normalize a file name.
abstract public  InputStreamopenFileInputStream(String fileName)
     Create an input stream to read from the file.
abstract public  FileObjectopenFileObject(String fileName, String mode)
     Open a random access file object.
Parameters:
  fileName - the file name
Parameters:
  mode - the access mode.
abstract public  OutputStreamopenFileOutputStream(String fileName, boolean append)
     Create an output stream to write into the file.
abstract public  voidrename(String oldName, String newName)
     Rename a file if this is allowed.
abstract public  booleantryDelete(String fileName)
     Try to delete a file.

Field Detail
DB_PREFIX
final public static String DB_PREFIX(Code)



MEMORY_PREFIX
final public static String MEMORY_PREFIX(Code)



MEMORY_PREFIX_LZF
final public static String MEMORY_PREFIX_LZF(Code)



ZIP_PREFIX
final public static String ZIP_PREFIX(Code)





Method Detail
canWrite
abstract public boolean canWrite(String fileName)(Code)
Check if the file is writable.
Parameters:
  fileName - the file name if the file is writable



copy
abstract public void copy(String original, String copy) throws SQLException(Code)
Copy a file from one directory to another, or to another file.
Parameters:
  original - the original file name
Parameters:
  copy - the file name of the copy



createDirs
abstract public void createDirs(String fileName) throws SQLException(Code)
Create all required directories that are required for this file.
Parameters:
  fileName - the file name (not directory name)



createNewFile
abstract public boolean createNewFile(String fileName) throws SQLException(Code)
Create a new file.
Parameters:
  fileName - the file name true if creating was successful



createTempFile
abstract public String createTempFile(String prefix, String suffix, boolean deleteOnExit, boolean inTempDir) throws IOException(Code)
Create a new temporary file.
Parameters:
  prefix - the file name prefix
Parameters:
  suffix - the file name suffix
Parameters:
  deleteOnExit - if the file should be deleted when the system exists
Parameters:
  inTempDir - if the file should be stored in the temp file the file name



delete
abstract public void delete(String fileName) throws SQLException(Code)
Delete a file.
Parameters:
  fileName - the file name



deleteRecursive
abstract public void deleteRecursive(String directory) throws SQLException(Code)
Delete a directory or file and all subdirectories and files.
Parameters:
  directory - the directory



exists
abstract public boolean exists(String fileName)(Code)
Checks if a file exists.
Parameters:
  fileName - the file name true if it exists



fileStartsWith
abstract public boolean fileStartsWith(String fileName, String prefix)(Code)
Check if a file starts with a given prefix.
Parameters:
  fileName - the complete file name
Parameters:
  prefix - the prefix true if it starts with the prefix



getAbsolutePath
abstract public String getAbsolutePath(String fileName)(Code)
Get the absolute file name.
Parameters:
  fileName - the file name the absolute file name



getFileName
abstract public String getFileName(String name) throws SQLException(Code)
Get the file name (without directory part).
Parameters:
  name - the directory and file name just the file name



getInstance
public static FileSystem getInstance(String fileName)(Code)
Get the file system object.
Parameters:
  fileName - the file name or prefix the file system



getLastModified
abstract public long getLastModified(String fileName)(Code)
Get the last modified date of a file
Parameters:
  fileName - the file name the last modified date



getParent
abstract public String getParent(String fileName)(Code)
Get the parent directory of a file or directory.
Parameters:
  fileName - the file or directory name the parent directory name



isAbsolute
abstract public boolean isAbsolute(String fileName)(Code)
Check if the file name includes a path.
Parameters:
  fileName - the file name if the file name is absolute



isDirectory
abstract public boolean isDirectory(String fileName)(Code)
Check if it is a file or a directory.
Parameters:
  fileName - the file or directory name true if it is a directory



isReadOnly
abstract public boolean isReadOnly(String fileName)(Code)
Check if a file is read-only.
Parameters:
  fileName - the file name if it is read only



length
abstract public long length(String fileName)(Code)
Get the length of a file.
Parameters:
  fileName - the file name the length in bytes



listFiles
abstract public String[] listFiles(String directory) throws SQLException(Code)
List the files in the given directory.
Parameters:
  directory - the directory the list of fully qualified file names



mkdirs
public void mkdirs(String directoryName) throws SQLException(Code)
Create all required directories.
Parameters:
  directoryName - the directory name



normalize
abstract public String normalize(String fileName) throws SQLException(Code)
Normalize a file name.
Parameters:
  fileName - the file name the normalized file name



openFileInputStream
abstract public InputStream openFileInputStream(String fileName) throws IOException(Code)
Create an input stream to read from the file.
Parameters:
  fileName - the file name the input stream



openFileObject
abstract public FileObject openFileObject(String fileName, String mode) throws IOException(Code)
Open a random access file object.
Parameters:
  fileName - the file name
Parameters:
  mode - the access mode. Supported are r, rw, rws, rwd the file object



openFileOutputStream
abstract public OutputStream openFileOutputStream(String fileName, boolean append) throws SQLException(Code)
Create an output stream to write into the file.
Parameters:
  fileName - the file name
Parameters:
  append - if true, the file will grow, if false, the file will betruncated first the output stream



rename
abstract public void rename(String oldName, String newName) throws SQLException(Code)
Rename a file if this is allowed.
Parameters:
  oldName - the old fully qualified file name
Parameters:
  newName - the new fully qualified file name
throws:
  SQLException -



tryDelete
abstract public boolean tryDelete(String fileName)(Code)
Try to delete a file.
Parameters:
  fileName - the file name true if it could be deleted



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.