de.waldheinz.fs
Interface FsObject

All Known Subinterfaces:
FsDirectory, FsDirectoryEntry, FsFile
All Known Implementing Classes:
AbstractFsObject, FatFile, FatLfnDirectory, FatLfnDirectoryEntry

public interface FsObject

This interface is the base interface for objects that are part of a FileSystem.

Author:
Ewout Prangsma <epr at jnode.org>, Matthias Treydte <waldheinz at gmail.com>

Method Summary
 boolean isReadOnly()
          Checks if this FsObject is read-only.
 boolean isValid()
          Checks if this FsObject is still valid.
 

Method Detail

isValid

boolean isValid()
Checks if this FsObject is still valid. An object is not valid anymore if it has been removed from the filesystem. All invocations on methods (except this method and the methods inherited from Object) of invalid objects must throw an IllegalStateException.

Returns:
if this FsObject is still valid

isReadOnly

boolean isReadOnly()
Checks if this FsObject is read-only. Any attempt to modify a read-only FsObject must result in a ReadOnlyException being thrown, and the modification must not be performed.

Returns:
if this FsObject is read-only
Since:
0.6


Copyright © 2014. All rights reserved.