|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webcodepro.applecommander.storage.os.dos33.DosFileEntry
public class DosFileEntry
Represents a DOS file entry on disk.
Date created: Oct 4, 2002 5:15:25 PM
Field Summary | |
---|---|
static int |
FILE_DESCRIPTIVE_ENTRY_LENGTH
Indicates the length in bytes of the DOS file entry field. |
Constructor Summary | |
---|---|
DosFileEntry(DosFormatDisk disk,
int track,
int sector,
int offset)
Constructor for DosFileEntry. |
Method Summary | |
---|---|
boolean |
canCompile()
Indicates that this filetype can be compiled. |
void |
delete()
Delete this file. |
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.lang.String |
getFiletype()
Return the filetype of this file. |
FormattedDisk |
getFormattedDisk()
Get the FormattedDisk associated with this FileEntry. |
int |
getMaximumFilenameLength()
Return the maximum filename length. |
int |
getSector()
Get the sector of first track/sector list sector. |
int |
getSectorsUsed()
Compute the number of sectors used. |
int |
getSize()
Compute the size of this file (in bytes). |
FileFilter |
getSuggestedFilter()
Get the suggested FileFilter. |
int |
getTrack()
Get the track of first track/sector list sector. |
boolean |
isApplesoftBasicFile()
Determine if this is an Applesoft BASIC file. |
boolean |
isAssemblySourceFile()
Determine if this is an assembly source code file. |
boolean |
isBinaryFile()
Determine if this is a binary file. |
boolean |
isDeleted()
Identify if this file has been deleted. |
boolean |
isDirectory()
Identify if this is a directory file. |
boolean |
isIntegerBasicFile()
Determine if this is an Integer BASIC file. |
boolean |
isLocked()
Identify if this file is locked. |
boolean |
isTextFile()
Determine if this is a text file. |
boolean |
needsAddress()
Indicates if this filetype requires an address component. |
protected byte[] |
readFileEntry()
Read the FileEntry from the disk image. |
void |
setAddress(int address)
Set the address that this file loads at. |
void |
setFileData(byte[] data)
Set the file data. |
void |
setFilename(java.lang.String filename)
Set the name of this file. |
void |
setFiletype(java.lang.String filetype)
Set the filetype. |
void |
setLocked(boolean lock)
Set the lock indicator. |
void |
setSector(int sector)
Set the sector of the first track/sector list sector. |
void |
setSectorsUsed(int sectorsUsed)
Set the number of sectors used. |
void |
setTrack(int track)
Set the track of the first track/sector list sector. |
protected void |
writeFileEntry(byte[] fileEntry)
Write the FileEntry to the disk image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FILE_DESCRIPTIVE_ENTRY_LENGTH
Constructor Detail |
---|
public DosFileEntry(DosFormatDisk disk, int track, int sector, int offset)
Method Detail |
---|
protected byte[] readFileEntry()
protected void writeFileEntry(byte[] fileEntry)
public int getMaximumFilenameLength()
getMaximumFilenameLength
in interface FileEntry
public java.lang.String getFilename()
getFilename
in interface FileEntry
FileEntry.getFilename()
public void setFilename(java.lang.String filename)
setFilename
in interface FileEntry
public java.lang.String getFiletype()
getFiletype
in interface FileEntry
FileEntry.getFiletype()
public void setFiletype(java.lang.String filetype)
setFiletype
in interface FileEntry
public boolean isLocked()
isLocked
in interface FileEntry
FileEntry.isLocked()
public void setLocked(boolean lock)
setLocked
in interface FileEntry
public int getSize()
getSize
in interface FileEntry
FileEntry.getSize()
public int getSectorsUsed()
public void setSectorsUsed(int sectorsUsed)
public boolean isDirectory()
isDirectory
in interface FileEntry
FileEntry.isDirectory()
public boolean isDeleted()
isDeleted
in interface FileEntry
FileEntry.isDeleted()
public void delete()
delete
in interface FileEntry
public java.util.List getFileColumnData(int displayMode)
getFileColumnData
in interface FileEntry
public int getTrack()
public void setTrack(int track)
public int getSector()
public void setSector(int sector)
public byte[] getFileData()
getFileData
in interface FileEntry
public void setFileData(byte[] data) throws DiskFullException
setFileData
in interface FileEntry
DiskFullException
public FileFilter getSuggestedFilter()
getSuggestedFilter
in interface FileEntry
public boolean isAssemblySourceFile()
public boolean isTextFile()
public boolean isApplesoftBasicFile()
public boolean isIntegerBasicFile()
public boolean isBinaryFile()
public FormattedDisk getFormattedDisk()
getFormattedDisk
in interface FileEntry
public boolean needsAddress()
needsAddress
in interface FileEntry
public void setAddress(int address)
setAddress
in interface FileEntry
public boolean canCompile()
canCompile
in interface FileEntry
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |