Package libsidutils.directory
Klasse DirEntry
java.lang.Object
libsidutils.directory.DirEntry
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final byteBITMASK_FILETYPE.private intUsed disk blocks (disk) or number of bytes (tape).private byte[]File name.private byteFile type.static final byteFILETYPE_DEL.static final byteno file type.static final byteFILETYPE_PRG.static final byteFILETYPE_REL.static final byteFILETYPE_SEQ.static final byteFILETYPE_USR.private static final String[]All file extensions. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGet string representation of this directory entry.final StringReturn a valid filename to save this directory entry to hard disk.voidSave the program of this directory entry to the specified file.static final StringtoFilename(String directoryLine) Un-quote filename.static final StringtoQuotedFilenameAndType(byte[] fileName, byte fileType) Quoted file name and type string.
-
Felddetails
-
BITMASK_FILETYPE
public static final byte BITMASK_FILETYPEBITMASK_FILETYPE.- Siehe auch:
-
FILETYPE_NONE
public static final byte FILETYPE_NONEno file type.- Siehe auch:
-
FILETYPE_DEL
public static final byte FILETYPE_DELFILETYPE_DEL.- Siehe auch:
-
FILETYPE_SEQ
public static final byte FILETYPE_SEQFILETYPE_SEQ.- Siehe auch:
-
FILETYPE_PRG
public static final byte FILETYPE_PRGFILETYPE_PRG.- Siehe auch:
-
FILETYPE_USR
public static final byte FILETYPE_USRFILETYPE_USR.- Siehe auch:
-
FILETYPE_REL
public static final byte FILETYPE_RELFILETYPE_REL.- Siehe auch:
-
FILETYPES
All file extensions. -
blocks
private int blocksUsed disk blocks (disk) or number of bytes (tape). -
filename
private byte[] filenameFile name. -
fileType
private byte fileTypeFile type.
-
-
Konstruktordetails
-
DirEntry
public DirEntry(int nrSectors, byte[] fn, byte fType) Constructor.- Parameter:
nrSectors- disk: blocks used, tape: program lengthfn- file namefType- file type or -1 (no extension)
-
-
Methodendetails
-
toQuotedFilenameAndType
Quoted file name and type string.- Parameter:
fileName- file namefileType- file type- Gibt zurück:
- quoted file name and type string
-
toFilename
Un-quote filename.- Parameter:
directoryLine-- Gibt zurück:
- unquoted file name
-
getDirectoryLine
Get string representation of this directory entry. -
getValidFilename
Return a valid filename to save this directory entry to hard disk.- Gibt zurück:
- a valid filename to save this directory entry
-
save
Save the program of this directory entry to the specified file.- Parameter:
autostartFile- file to save- Löst aus:
IOException- File write error
-