All Packages  This Package  Class Hierarchy  Class Search  Index

Class posix.File
java.lang.Object
   |
   +----java.io.File
           |
           +----posix.File

  Summary

public class  File
     extends java.io.File
{
          // Constructors 3
     public File(String);
     public File(String, String);
     public File(File, String);

          // Methods 4
     public int getMode();
     public Stat getStat() throws IOException;
     public long lastAccessed();
     public long lastChanged();
}

Extend java.io.File with posix features.

Author:
Stuart D. Gathman Copyright 2002 Business Management Systems, Inc




  Constructors

· File

Summary  |  Top

   public File(String name) 


· File

Summary  |  Top
   public File(String dir, 
               String name) 


· File

Summary  |  Top
   public File(File dir, 
               String name) 


  Methods

· lastAccessed

Summary  |  Top
   public long lastAccessed() 

Return the posix last accessed time (atime).

Returns:
the accessed time in milliseconds since 1970


· lastChanged

Summary  |  Top
   public long lastChanged() 

Return the posix last changed time (ctime).

Returns:
the changed time in milliseconds since 1970


· getMode

Summary  |  Top
   public int getMode() 

Return the posix file mode.

Returns:
a bitmask of posix file permissions and type


· getStat

Summary  |  Top
   public Stat getStat()  throws IOException

Return the posix Stat record for the file.

Returns:
the posix Stat record or null


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7