|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webcodepro.applecommander.storage.os.rdos.RdosFileEntry
public class RdosFileEntry
Handle RDOS file entry format.
Since I was unable to locate the file entries on the internet, it is documented here:
Offset Description
====== ====================================================
$00-$17 File name; space-filled. If the first byte is $00, that is the end of the
directory. If the first byte is $80, the file is deleted.
$18 File type. Appears to be actual letter ('A'=Applesoft, etc)
$19 File length in blocks (block = sector = 256 bytes)
$1A-$1B Address of application. For Applesoft and binary; others may vary.
$1C-$1D Length in bytes of file.
$1E-$1F Starting block of application.
Date created: Oct 7, 2002 1:36:56 PM
Constructor Summary | |
---|---|
RdosFileEntry(byte[] fileEntry,
RdosFormatDisk disk)
Constructor for RdosFileEntry. |
Method Summary | |
---|---|
boolean |
canCompile()
Indicates that this filetype can be compiled. |
void |
delete()
Delete the file. |
int |
getAddress()
Return the address of application. |
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. |
FormattedDisk |
getFormattedDisk()
Get the FormattedDisk associated with this FileEntry. |
int |
getMaximumFilenameLength()
Return the maximum filename length. |
int |
getSize()
Compute the size of this file (in bytes). |
int |
getSizeInBlocks()
Return the number of blocks this file uses. |
int |
getStartingBlock()
Return the starting block of this application. |
FileFilter |
getSuggestedFilter()
Get the suggested FileFilter. |
boolean |
isApplesoftBasicFile()
Determine if this is an Applesoft BASIC file. |
boolean |
isBinaryFile()
Determine if this is a binary file. |
boolean |
isDeleted()
Identify if this file has been deleted. |
boolean |
isDirectory()
RDOS does not support directories. |
boolean |
isIntegerBasicFile()
Determine if this is an Integer BASIC file. |
boolean |
isLocked()
Locked doesn't appear to be a concept under RDOS. |
boolean |
isTextFile()
Determine if this is a text file. |
boolean |
needsAddress()
Indicates if this filetype requires an address component. |
void |
setAddress(int address)
Set the address that this file loads at. |
void |
setFileData(byte[] data)
Set 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RdosFileEntry(byte[] fileEntry, RdosFormatDisk disk)
Method Detail |
---|
public int getSizeInBlocks()
public int getStartingBlock()
public int getAddress()
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 getSize()
getSize
in interface FileEntry
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.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
public FileFilter getSuggestedFilter()
getSuggestedFilter
in interface FileEntry
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 |