Interface COM.tolstoy.jconfig.DiskFile
All Packages Class Hierarchy This Package Previous Next Index
Interface COM.tolstoy.jconfig.DiskFile
- public interface DiskFile
- extends Object
- extends DiskObject
Represents a file.
-
copyrightString
-
-
kFInfoCreatorOffset
- Offset to the creator value for the getFinderInfo and setFinderInfo methods.
-
kFInfoLen
- Length of the array argument to the getFinderInfo method.
-
kFInfoTypeOffset
- Offset to the type value for the getFinderInfo and setFinderInfo methods.
-
kHasCustomIcon
- Mask used to indicate that this file/directory has a custom icon.
-
kIsDirectory
- Mask used to indicate that this is a directory.
-
kIsExecutable
- Mask used to indicate that this file is an executable.
-
kIsHidden
- Mask used to indicate that this file/directory is hidden.
-
kIsNameLocked
- Mask used to indicate that the name of this file/directory cannot be changed.
-
kIsStationery
- Mask used to indicate that this file is a stationery form.
-
diskFileFlagsToString(int)
- Convenience method which converts a given set of DiskFile flags into a string representation.
-
getFileSize()
- Returns the length of this file.
-
getFinderInfo(int[])
- Retrieves the FinderInfo associated with this file.
-
getPlatformData()
- Retrieves platform-specific data for this file.
-
getResourceForkSize()
- Returns the size of this file's resource fork, if any.
-
getVersion()
- Returns the VersionInfo object which is associated with this file.
-
getVolume()
- Returns the DiskVolume object which contains this file or directory.
-
setFinderInfo(int[])
- Sets the FinderInfo of this file.
copyrightString
public final static String copyrightString
kIsExecutable
public final static int kIsExecutable
- Mask used to indicate that this file is an executable.
kIsDirectory
public final static int kIsDirectory
- Mask used to indicate that this is a directory.
kIsHidden
public final static int kIsHidden
- Mask used to indicate that this file/directory is hidden.
kIsStationery
public final static int kIsStationery
- Mask used to indicate that this file is a stationery form.
kIsNameLocked
public final static int kIsNameLocked
- Mask used to indicate that the name of this file/directory cannot be changed.
kHasCustomIcon
public final static int kHasCustomIcon
- Mask used to indicate that this file/directory has a custom icon.
kFInfoLen
public final static int kFInfoLen
- Length of the array argument to the getFinderInfo method.
kFInfoCreatorOffset
public final static int kFInfoCreatorOffset
- Offset to the creator value for the getFinderInfo and setFinderInfo methods.
kFInfoTypeOffset
public final static int kFInfoTypeOffset
- Offset to the type value for the getFinderInfo and setFinderInfo methods.
getFileSize
public abstract long getFileSize()
- Returns the length of this file. Note that on Mac, this includes both forks. If this object is a
directory, or if an error occurs, 0 is returned.
getResourceForkSize
public abstract long getResourceForkSize()
- Returns the size of this file's resource fork, if any. On Windows, zero is returned.
getVolume
public abstract DiskVolume getVolume()
- Returns the DiskVolume object which contains this file or directory.
getVersion
public abstract VersionInfo getVersion()
- Returns the VersionInfo object which is associated with this file. Returns null if
no version information is available.
getPlatformData
public abstract int[] getPlatformData()
- Retrieves platform-specific data for this file. On Mac, the vRef is at offset 0, and the
parID is at offset 1.
getFinderInfo
public abstract int getFinderInfo(int info[])
- Retrieves the FinderInfo associated with this file. This is Mac-specific; the FinderInfo is the
creator and file type of this file. Returns zero if no error occured; non-zero otherwise.
- Parameters:
- info - an array with length >= the kFInfoLen constant
setFinderInfo
public abstract int setFinderInfo(int newInfo[])
- Sets the FinderInfo of this file. This is Mac-specific; the FinderInfo is the creator and file
type of this file. This only works for files, not directories. Returns zero if no error occured;
non-zero otherwise.
- Parameters:
- info - an array with length >= the kFInfoLen constant
diskFileFlagsToString
public abstract String diskFileFlagsToString(int f)
- Convenience method which converts a given set of DiskFile flags into a string representation.
All Packages Class Hierarchy This Package Previous Next Index