|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.webcodepro.applecommander.storage.os.pascal.PascalFileEntry
public class PascalFileEntry
Represents a Pascal file entry on disk.
Date created: Oct 5, 2002 12:22:34 AM
| Constructor Summary | |
|---|---|
PascalFileEntry(byte[] fileEntry,
PascalFormatDisk disk)
Constructor for PascalFileEntry. |
|
| Method Summary | |
|---|---|
boolean |
canCompile()
Indicates that this filetype can be compiled. |
void |
delete()
Delete the file. |
int |
getBlocksUsed()
Compute the blocks used. |
int |
getBytesUsedInLastBlock()
Get the number of bytes used in files last block. |
java.util.List |
getFileColumnData(int displayMode)
Get the standard file column header information. |
byte[] |
getFileData()
Get file data. |
java.lang.String |
getFilename()
Return the name of this file. |
java.util.List |
getFiles()
Retrieve the list of files in this directory. |
java.lang.String |
getFiletype()
Return the filetype of this file. |
int |
getFirstBlock()
Get the block number of the file's 1st block. |
FormattedDisk |
getFormattedDisk()
Get the FormattedDisk associated with this FileEntry. |
int |
getLastBlock()
Get the block number of the file's last block + 1. |
int |
getMaximumFilenameLength()
Return the maximum filename length. |
java.util.Date |
getModificationDate()
Get the file modification date. |
int |
getSize()
Compute the size of this file (in bytes). |
FileFilter |
getSuggestedFilter()
Get the suggested FileFilter. |
boolean |
isDeleted()
Pascal file entries are removed upon deletion, so a file entry need not be marked as deleted. |
boolean |
isDirectory()
Pascal does not support directories. |
boolean |
isLocked()
Identify if this file is locked |
boolean |
needsAddress()
Indicates if this filetype requires an address component. |
void |
setAddress(int address)
Set the address that this file loads at. |
void |
setBytesUsedInLastBlock(int value)
Set the number of bytes used in files last block. |
void |
setEntryIndex(int index)
Remember the index of a newly created file entry. |
void |
setFileCount(int count)
Set the file count in a volume entry. |
void |
setFileData(byte[] data)
Set file data for this file entry. |
void |
setFilename(java.lang.String filename)
Set the name of this file. |
void |
setFiletype(java.lang.String filetype)
Set the filetype. |
void |
setFirstBlock(int first)
Set the block number of the file's 1st block. |
void |
setLastBlock(int last)
Set the block number of the file's last block + 1. |
void |
setLocked(boolean lock)
Set the lock indicator. |
void |
setModificationDate(java.util.Date date)
Set the file modification date. |
byte[] |
toBytes()
Get the byte[] associated with this FileEntry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PascalFileEntry(byte[] fileEntry,
PascalFormatDisk disk)
| Method Detail |
|---|
public int getFirstBlock()
public void setFirstBlock(int first)
public int getLastBlock()
public void setLastBlock(int last)
public java.lang.String getFilename()
getFilename in interface FileEntrypublic void setFilename(java.lang.String filename)
setFilename in interface FileEntrypublic int getMaximumFilenameLength()
getMaximumFilenameLength in interface FileEntrypublic java.lang.String getFiletype()
getFiletype in interface FileEntrypublic void setFiletype(java.lang.String filetype)
setFiletype in interface FileEntrypublic boolean isLocked()
isLocked in interface FileEntrypublic void setLocked(boolean lock)
setLocked in interface FileEntrypublic int getBytesUsedInLastBlock()
public void setBytesUsedInLastBlock(int value)
public int getSize()
getSize in interface FileEntrypublic int getBlocksUsed()
public boolean isDirectory()
isDirectory in interface FileEntrypublic java.util.List getFiles()
public boolean isDeleted()
isDeleted in interface FileEntrypublic void delete()
delete in interface FileEntrypublic java.util.Date getModificationDate()
public void setModificationDate(java.util.Date date)
public java.util.List getFileColumnData(int displayMode)
getFileColumnData in interface FileEntrypublic byte[] getFileData()
getFileData in interface FileEntry
public void setFileData(byte[] data)
throws DiskFullException
setFileData in interface FileEntryDiskFullExceptionsetEntryIndex(int),
PascalFormatDisk.createFile()public FileFilter getSuggestedFilter()
getSuggestedFilter in interface FileEntrypublic FormattedDisk getFormattedDisk()
getFormattedDisk in interface FileEntrypublic byte[] toBytes()
public boolean needsAddress()
needsAddress in interface FileEntrypublic void setAddress(int address)
setAddress in interface FileEntrypublic boolean canCompile()
canCompile in interface FileEntrypublic void setEntryIndex(int index)
public void setFileCount(int count)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||