All Packages This Package Class Hierarchy Class Search Index
Class com.jconfig.nix.DiskFileNix
java.lang.Object
|
+----com.jconfig.nix.DiskFileNix
class DiskFileNix
extends java.lang.Object
implements com.jconfig.DiskFile
{
// Fields 7
private boolean bAlreadyGotVersionInfo;
private boolean bIsFolder;
private static final String copyrightString;
private File theFile;
private String thePath;
private DiskVolume theVolume;
private VersionInfoNix versionInfo;
// Constructors 1
DiskFileNix(File) throws FileNotFoundException, DiskFileException;
// Methods 32
public DiskObject createObject(String, int, int);
public String diskFileFlagsToString(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();
public File getFile();
String getFilePath();
public long getFileSize();
public FileSystem getFileSystem();
public FinderInfo getFinderInfo();
public int getFlags();
public int getGetFlagsMask();
public IconBundle getIconBundle();
public String getName();
public int[] getPlatformData();
public ResourceFork getResourceFork();
public long getResourceForkSize();
public int getSetFlagsMask();
public String getShortName();
public VersionInfo getVersion();
public DiskVolume getVolume();
public int iterate(DiskFilter, int, int);
private void makeVersionInfo();
public void setDateBundle(DateBundle);
public int setFinderInfo(FinderInfo);
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.
- Extended By:
- AppFileNix, DiskAliasNix
private static final String copyrightString
private File theFile
private String thePath
private DiskVolume theVolume
private VersionInfoNix versionInfo
private boolean bIsFolder
private boolean bAlreadyGotVersionInfo
DiskFileNix(File fl) throws FileNotFoundException, DiskFileException
public FileSystem getFileSystem()
public boolean exists()
public String getName()
public int setName(String newName)
- Throws: UnimplementedException
- this method always throws an UnimplementedException
public String getDisplayName()
public String getShortName()
Returns the the short version of the file's name, if applicable
- Implements:
- getShortName in interface DiskFile
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.
public int getColorCoding()
public File getFile()
public long getFileSize()
- Implements:
- getFileSize in interface DiskFile
public long getResourceForkSize()
- Implements:
- getResourceForkSize in interface DiskFile
public DiskVolume getVolume()
- Implements:
- getVolume in interface DiskFile
public VersionInfo getVersion()
- Implements:
- getVersion in interface DiskFile
private void makeVersionInfo()
public int[] getPlatformData()
- Implements:
- getPlatformData in interface DiskFile
public FinderInfo getFinderInfo()
- Throws: UnimplementedException
- this method always throws an UnimplementedException
- Implements:
- getFinderInfo in interface DiskFile
public int setFinderInfo(FinderInfo newFI)
- Throws: UnimplementedException
- this method always throws an UnimplementedException
- Implements:
- setFinderInfo in interface DiskFile
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
String getFilePath()
public String diskFileFlagsToString(int f)
- Implements:
- diskFileFlagsToString in interface DiskFile
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 |
public ResourceFork getResourceFork()
Not implemented on Nix, always returns null.
- Implements:
- getResourceFork in interface DiskFile
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