com.novell.java.io
Interface NFile


public interface NFile
extends java.io.Serializable

Instances of this class represent the name of a file or directory on the host file system. The NFile class is intended to provide an abstraction that deals with most of the machine-dependent complexities of files and pathnames in a machine-independent fashion.

The NFile interface is the replacement for the java.io.File class. It is defined in terms of File, in that all methods from File that could be implemented here have the same signature.

The com.novell.service.file.nw.NetwareFile interface extends the NFile interface. The NetwareFile interface provides methods for obtaining attribute values associated with a file object.


Method Summary
 long lastModified()
          Returns the time the file represented by this NFile object was last modified.
 long length()
          Returns the length of the file represented by this NFile object.
 

Method Detail

lastModified

public long lastModified()
Returns the time the file represented by this NFile object was last modified.

The return value is system dependent. It should not be interpreted as an absolute time and should be used only to compare with other values returned by lastModified().

Returns:
The time the file specified by this object was last modified.

length

public long length()
Returns the length of the file represented by this NFile object.
Returns:
The length of the file specified by this object.