|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webcodepro.applecommander.storage.os.prodos.ProdosCommonEntry
com.webcodepro.applecommander.storage.os.prodos.ProdosFileEntry
public class ProdosFileEntry
Represents a ProDOS file entry on disk.
Date created: Oct 5, 2002 6:01:15 PM
Field Summary |
---|
Fields inherited from class com.webcodepro.applecommander.storage.os.prodos.ProdosCommonEntry |
---|
ENTRY_LENGTH |
Constructor Summary | |
---|---|
ProdosFileEntry(ProdosFormatDisk disk,
int block,
int offset)
Constructor for ProdosFileEntry. |
Method Summary | |
---|---|
boolean |
canCompile()
Indicates that this filetype can be compiled. |
void |
delete()
Delete the file. |
int |
getAuxiliaryType()
Get the auxiliary type for this file. |
int |
getBlocksUsed()
Get the number of blocks used. |
int |
getEofPosition()
Get the EOF position. |
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. |
int |
getFiletypeByte()
|
java.lang.String |
getFileTypeString()
Return the ProDOS file type as a hex string. |
int |
getHeaderPointer()
Get the block number of the key block for the directory which describes this file. |
int |
getKeyPointer()
Get the key pointer. |
java.util.Date |
getLastModificationDate()
Get the last modification date. |
int |
getMaximumFilenameLength()
Return the maximum filename length. |
int |
getSize()
Compute the size of this file (in bytes). |
FileFilter |
getSuggestedFilter()
Get the suggested FileFilter. |
boolean |
isAppleWorksFile()
Indicate if this is an AppleWorks file. |
boolean |
isDeleted()
Identify if this file has been deleted. |
boolean |
isDirectory()
Identify if this is a directory file. |
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 |
setAuxiliaryType(byte[] entry,
byte low,
byte high)
Set the auxiliary type for this file. |
void |
setAuxiliaryType(byte[] entry,
int auxiliaryType)
Set the auxiliary type for this file. |
void |
setBlocksUsed(int blocksUsed)
Set the number of blocks used. |
void |
setEofPosition(int eofPosition)
Set the EOF position. |
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 |
setHeaderPointer(int headerPointer)
Set the block number of the block for the directory which describes this file. |
void |
setKeyPointer(int keyPointer)
Set the key pointer. |
void |
setLastModificationDate(java.util.Date date)
Set the last modification date. |
void |
setLocked(boolean lock)
Set the lock indicator. |
Methods inherited from class com.webcodepro.applecommander.storage.os.prodos.ProdosCommonEntry |
---|
canDestroy, canRead, canRename, canWrite, getAccess, getCreationDate, getDisk, getFileEntryBlock, getFormattedDisk, getMinimumProdosVersion, getProdosVersion, getStorageType, hasChanged, isEmpty, isSaplingFile, isSeedlingFile, isSubdirectoryHeader, isTreeFile, isVolumeHeader, readFileEntry, setAccess, setCanDestroy, setCanRead, setCanRename, setCanWrite, setCreationDate, setHasChanged, setMinimumProdosVersion, setProdosVersion, setSaplingFile, setSeedlingFile, setStorageType, setSubdirectoryHeader, setTreeFile, setVolumeHeader, writeFileEntry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.webcodepro.applecommander.storage.FileEntry |
---|
getFormattedDisk |
Constructor Detail |
---|
public ProdosFileEntry(ProdosFormatDisk disk, int block, int offset)
Method Detail |
---|
public java.lang.String getFilename()
getFilename
in interface FileEntry
public int getMaximumFilenameLength()
getMaximumFilenameLength
in interface FileEntry
public void setFilename(java.lang.String filename)
setFilename
in interface FileEntry
public java.lang.String getFiletype()
getFiletype
in interface FileEntry
public int getFiletypeByte()
public void setFiletype(java.lang.String filetype)
setFiletype
in interface FileEntry
public boolean isAppleWorksFile()
public int getKeyPointer()
public void setKeyPointer(int keyPointer)
public int getBlocksUsed()
public void setBlocksUsed(int blocksUsed)
public int getEofPosition()
public void setEofPosition(int eofPosition)
public int getAuxiliaryType()
public void setAuxiliaryType(byte[] entry, byte low, byte high)
public void setAuxiliaryType(byte[] entry, int auxiliaryType)
public java.util.Date getLastModificationDate()
public void setLastModificationDate(java.util.Date date)
public int getHeaderPointer()
public void setHeaderPointer(int headerPointer)
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 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 java.lang.String getFileTypeString()
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 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 |