|
|||||||||
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 FileEntry
public void setFilename(java.lang.String filename)
setFilename
in interface FileEntry
public int getMaximumFilenameLength()
getMaximumFilenameLength
in interface FileEntry
public java.lang.String getFiletype()
getFiletype
in interface FileEntry
public void setFiletype(java.lang.String filetype)
setFiletype
in interface FileEntry
public boolean isLocked()
isLocked
in interface FileEntry
public void setLocked(boolean lock)
setLocked
in interface FileEntry
public int getBytesUsedInLastBlock()
public void setBytesUsedInLastBlock(int value)
public int getSize()
getSize
in interface FileEntry
public int getBlocksUsed()
public boolean isDirectory()
isDirectory
in interface FileEntry
public java.util.List getFiles()
public boolean isDeleted()
isDeleted
in interface FileEntry
public void delete()
delete
in interface FileEntry
public java.util.Date getModificationDate()
public void setModificationDate(java.util.Date date)
public java.util.List getFileColumnData(int displayMode)
getFileColumnData
in interface FileEntry
public byte[] getFileData()
getFileData
in interface FileEntry
public void setFileData(byte[] data) throws DiskFullException
setFileData
in interface FileEntry
DiskFullException
setEntryIndex(int)
,
PascalFormatDisk.createFile()
public FileFilter getSuggestedFilter()
getSuggestedFilter
in interface FileEntry
public FormattedDisk getFormattedDisk()
getFormattedDisk
in interface FileEntry
public byte[] toBytes()
public boolean needsAddress()
needsAddress
in interface FileEntry
public void setAddress(int address)
setAddress
in interface FileEntry
public boolean canCompile()
canCompile
in interface FileEntry
public 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 |