All Packages This Package Class Hierarchy Class Search Index
Class com.jconfig.nix.DiskVolumeNix
java.lang.Object
|
+----com.jconfig.nix.DiskVolumeNix
class DiskVolumeNix
extends java.lang.Object
implements com.jconfig.DiskVolume
{
// Fields 2
private static final String copyrightString;
private String driveName;
// Constructors 1
DiskVolumeNix(String);
// Methods 27
public DiskObject createObject(String, int, int);
private String diskVolumeFlagsToString(int);
public void dumpInfo(PrintStream, String);
public boolean exists();
public int getColorCoding();
public DiskObject getContainer() throws FileNotFoundException, DiskFileException;
public DateBundle getDateBundle();
protected String getDateString();
public String getDisplayName();
String getDriveName();
public File getFile();
public FileSystem getFileSystem();
public int getFlags();
public long getFreeSpace();
public int getGetFlagsMask();
public IconBundle getIconBundle();
public long getMaxCapacity();
public int getMaxFileNameLength();
public String getName();
public String getPrefix();
public long getReferenceNumber();
public int getSetFlagsMask();
public int iterate(DiskFilter, int, int);
public void setDateBundle(DateBundle);
public void setFlags(int, int);
public int setName(String);
public int updateContainer();
}
This is a preliminary class derived from the Windows class of similar name. This class may be replaced
or modified in a future version.
- Author:
-
Copyright (c) 1997-2002 Samizdat Productions. All Rights Reserved.
private static final String copyrightString
private String driveName
DiskVolumeNix(String s)
public FileSystem getFileSystem()
public String getName()
public int setName(String newLabel)
- Throws: UnimplementedException
- this method always throws an UnimplementedException
public String getDisplayName()
public String getPrefix()
- Implements:
- getPrefix in interface DiskVolume
String getDriveName()
public boolean exists()
public int getFlags()
public int getGetFlagsMask()
public void setFlags(int whichFlags,
int newValues)
Set the indicated flags.
Parameter | Description |
whichFlags | the mask indicating which bits in newValues are significant |
newValues | contains the bits to be set/reset. |
- Throws: UnimplementedException
- this method always throws an UnimplementedException
public int getSetFlagsMask()
Returns a mask which indicates which bits in the argument to 'setFlags' can be set. For
instance, if bit 0 of the return value of this method is set, bit 0 of 'setFlags' can be set.
- Returns:
- currently, always returns 0
public DateBundle getDateBundle()
public void setDateBundle(DateBundle newDates)
Sets the set of dates associated with this file.
Parameter | Description |
newDates | if one or more of the dates in this bundle are null, they will not be changed. |
public int getColorCoding()
public File getFile()
public int getMaxFileNameLength()
- Implements:
- getMaxFileNameLength in interface DiskVolume
public long getReferenceNumber()
- Implements:
- getReferenceNumber in interface DiskVolume
public long getMaxCapacity()
- Implements:
- getMaxCapacity in interface DiskVolume
public long getFreeSpace()
- Implements:
- getFreeSpace in interface DiskVolume
public int updateContainer()
- Throws: UnimplementedException
- this method always throws an UnimplementedException
public IconBundle getIconBundle()
public int iterate(DiskFilter filter,
int flags,
int maxToIterate)
public DiskObject getContainer() throws FileNotFoundException, DiskFileException
public DiskObject createObject(String name,
int type,
int flags)
Used to create a file, folder or other object which will be contained by this DiskObject.
Returns the new DiskObject, or null if the object could not be created.
Parameter | Description |
name | the name of the new object |
type | either 'DO_CREATEFILE' or 'DO_CREATEDIR' |
flags | reserved; set to 0 |
private String diskVolumeFlagsToString(int f)
protected String getDateString()
public void dumpInfo(PrintStream ps,
String indent)
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7