Java Doc for FileSystem.java in  » 6.0-JDK-Modules » j2me » java » io » 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 » 6.0 JDK Modules » j2me » java.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.io.FileSystem

All known Subclasses:   java.io.Win32FileSystem,  java.io.VxWorksFileSystem,  java.io.UnixFileSystem,  java.io.SymbianFileSystem,
FileSystem
abstract class FileSystem (Code)
Package-private abstract class for the local filesystem abstraction.


Field Summary
final public static  intBA_DIRECTORY
    
final public static  intBA_EXISTS
    
final public static  intBA_HIDDEN
    
final public static  intBA_REGULAR
    
static  booleanuseCanonCaches
    
static  booleanuseCanonPrefixCache
    


Method Summary
abstract public  Stringcanonicalize(String path)
    
abstract public  booleancheckAccess(File f, boolean write)
     Check whether the file or directory denoted by the given abstract pathname may be accessed by this process.
abstract public  intcompare(File f1, File f2)
     Compare two abstract pathnames lexicographically.
abstract public  booleancreateDirectory(File f)
     Create a new directory denoted by the given abstract pathname, returning true if and only if the operation succeeds.
abstract public  booleancreateFileExclusively(String pathname)
     Create a new empty file with the given pathname.
abstract public  booleandelete(File f)
     Delete the file or directory denoted by the given abstract pathname, returning true if and only if the operation succeeds.
abstract public  booleandeleteOnExit(File f)
     Arrange for the file or directory denoted by the given abstract pathname to be deleted when the VM exits, returning true if and only if the operation succeeds.
abstract public  StringfromURIPath(String path)
     Post-process the given URI path string if necessary.
abstract public  intgetBooleanAttributes(File f)
     Return the simple boolean attributes for the file or directory denoted by the given abstract pathname, or zero if it does not exist or some other I/O error occurs.
abstract public  StringgetDefaultParent()
     Return the parent pathname string to be used when the parent-directory argument in one of the two-argument File constructors is the empty pathname.
native public static  FileSystemgetFileSystem()
     Return the FileSystem object representing this platform's local filesystem.
abstract public  longgetLastModifiedTime(File f)
     Return the time at which the file or directory denoted by the given abstract pathname was last modified, or zero if it does not exist or some other I/O error occurs.
abstract public  longgetLength(File f)
     Return the length in bytes of the file denoted by the given abstract pathname, or zero if it does not exist, is a directory, or some other I/O error occurs.
abstract public  chargetPathSeparator()
     Return the local filesystem's path-separator character.
abstract public  chargetSeparator()
     Return the local filesystem's name-separator character.
abstract public  inthashCode(File f)
     Compute the hash code of an abstract pathname.
abstract public  booleanisAbsolute(File f)
     Tell whether or not the given abstract pathname is absolute.
abstract public  String[]list(File f)
     List the elements of the directory denoted by the given abstract pathname.
abstract public  File[]listRoots()
     List the available filesystem roots.
abstract public  Stringnormalize(String path)
     Convert the given pathname string to normal form.
abstract public  intprefixLength(String path)
     Compute the length of this pathname string's prefix.
abstract public  booleanrename(File f1, File f2)
     Rename the file or directory denoted by the first abstract pathname to the second abstract pathname, returning true if and only if the operation succeeds.
abstract public  Stringresolve(String parent, String child)
     Resolve the child pathname string against the parent.
abstract public  Stringresolve(File f)
     Resolve the given abstract pathname into absolute form.
abstract public  booleansetLastModifiedTime(File f, long time)
     Set the last-modified time of the file or directory denoted by the given abstract pathname, returning true if and only if the operation succeeds.
abstract public  booleansetReadOnly(File f)
     Mark the file or directory denoted by the given abstract pathname as read-only, returning true if and only if the operation succeeds.

Field Detail
BA_DIRECTORY
final public static int BA_DIRECTORY(Code)



BA_EXISTS
final public static int BA_EXISTS(Code)



BA_HIDDEN
final public static int BA_HIDDEN(Code)



BA_REGULAR
final public static int BA_REGULAR(Code)



useCanonCaches
static boolean useCanonCaches(Code)



useCanonPrefixCache
static boolean useCanonPrefixCache(Code)





Method Detail
canonicalize
abstract public String canonicalize(String path) throws IOException(Code)



checkAccess
abstract public boolean checkAccess(File f, boolean write)(Code)
Check whether the file or directory denoted by the given abstract pathname may be accessed by this process. If the second argument is false, then a check for read access is made; if the second argument is true, then a check for write (not read-write) access is made. Return false if access is denied or an I/O error occurs.



compare
abstract public int compare(File f1, File f2)(Code)
Compare two abstract pathnames lexicographically.



createDirectory
abstract public boolean createDirectory(File f)(Code)
Create a new directory denoted by the given abstract pathname, returning true if and only if the operation succeeds.



createFileExclusively
abstract public boolean createFileExclusively(String pathname) throws IOException(Code)
Create a new empty file with the given pathname. Return true if the file was created and false if a file or directory with the given pathname already exists. Throw an IOException if an I/O error occurs.



delete
abstract public boolean delete(File f)(Code)
Delete the file or directory denoted by the given abstract pathname, returning true if and only if the operation succeeds.



deleteOnExit
abstract public boolean deleteOnExit(File f)(Code)
Arrange for the file or directory denoted by the given abstract pathname to be deleted when the VM exits, returning true if and only if the operation succeeds.



fromURIPath
abstract public String fromURIPath(String path)(Code)
Post-process the given URI path string if necessary. This is used on win32, e.g., to transform "/c:/foo" into "c:/foo". The path string still has slash separators; code in the File class will translate them after this method returns.



getBooleanAttributes
abstract public int getBooleanAttributes(File f)(Code)
Return the simple boolean attributes for the file or directory denoted by the given abstract pathname, or zero if it does not exist or some other I/O error occurs.



getDefaultParent
abstract public String getDefaultParent()(Code)
Return the parent pathname string to be used when the parent-directory argument in one of the two-argument File constructors is the empty pathname.



getFileSystem
native public static FileSystem getFileSystem()(Code)
Return the FileSystem object representing this platform's local filesystem.



getLastModifiedTime
abstract public long getLastModifiedTime(File f)(Code)
Return the time at which the file or directory denoted by the given abstract pathname was last modified, or zero if it does not exist or some other I/O error occurs.



getLength
abstract public long getLength(File f)(Code)
Return the length in bytes of the file denoted by the given abstract pathname, or zero if it does not exist, is a directory, or some other I/O error occurs.



getPathSeparator
abstract public char getPathSeparator()(Code)
Return the local filesystem's path-separator character.



getSeparator
abstract public char getSeparator()(Code)
Return the local filesystem's name-separator character.



hashCode
abstract public int hashCode(File f)(Code)
Compute the hash code of an abstract pathname.



isAbsolute
abstract public boolean isAbsolute(File f)(Code)
Tell whether or not the given abstract pathname is absolute.



list
abstract public String[] list(File f)(Code)
List the elements of the directory denoted by the given abstract pathname. Return an array of strings naming the elements of the directory if successful; otherwise, return null.



listRoots
abstract public File[] listRoots()(Code)
List the available filesystem roots.



normalize
abstract public String normalize(String path)(Code)
Convert the given pathname string to normal form. If the string is already in normal form then it is simply returned.



prefixLength
abstract public int prefixLength(String path)(Code)
Compute the length of this pathname string's prefix. The pathname string must be in normal form.



rename
abstract public boolean rename(File f1, File f2)(Code)
Rename the file or directory denoted by the first abstract pathname to the second abstract pathname, returning true if and only if the operation succeeds.



resolve
abstract public String resolve(String parent, String child)(Code)
Resolve the child pathname string against the parent. Both strings must be in normal form, and the result will be in normal form.



resolve
abstract public String resolve(File f)(Code)
Resolve the given abstract pathname into absolute form. Invoked by the getAbsolutePath and getCanonicalPath methods in the File class.



setLastModifiedTime
abstract public boolean setLastModifiedTime(File f, long time)(Code)
Set the last-modified time of the file or directory denoted by the given abstract pathname, returning true if and only if the operation succeeds.



setReadOnly
abstract public boolean setReadOnly(File f)(Code)
Mark the file or directory denoted by the given abstract pathname as read-only, returning true if and only if the operation succeeds.



Methods inherited from java.lang.Object
public boolean equals(Object obj)(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.