com.sun.nfs
Class Nfs
public abstract class Nfs
extends java.lang.Object
Container class for an NFS object: either a file
or a directory. Herein are common
methods that are not version specific.
This class holds the file's filehandle, name,
and attributes. If a regular file then data may
be cached in an XDR buffer. If a directory then
the string array for the entries will be cached.
There's also a static hash table that's used to cache
these Nfs objects.
- Brent Callaghan
- Ricardo Labiaga
void | close() - Close the file by flushing data and
deallocating buffers.
|
protected void | finalize()
|
void | flush() - Flush any buffered writes to the file.
|
String | toString()
|
close
public void close()
throws IOException
Close the file by flushing data and
deallocating buffers.
finalize
protected void finalize()
throws Throwable
flush
public void flush()
throws IOException
Flush any buffered writes to the file. This must be
called after any series of writes to guarantee that the
data reach the server.
toString
public String toString()