Package libsidplay.components.c1530
Klasse Tap
java.lang.Object
libsidplay.components.c1530.Tap
TAP filetype implementation.
- Autor:
- Ken Händel
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibung(Package privat) intTape counter.(Package privat) longPosition in the current file.(Package privat) intTape counter in machine-cycles/8 for even looong tapes.(Package privat) intTape length in machine-cycles/8.(Package privat) RandomAccessFileTAP file descriptor.(Package privat) booleanHas the tap changed?private static final Charset(Package privat) intHeader offset.private booleanRead only tape?(Package privat) longSize of the TAP image.(Package privat) byteSystem the image is made for.static final intLength of the TAP file header infos.static final intOffset of the header magic string.static final intSize of the TAP file header.static final intOffset of the TAP header system info.static final intOffset of the TAP header version info.(Package privat) byteThe TAP version byte. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal voidclose()Close tape image.booleanfinal booleanOpen tape image.final booleanRead TAP header.(Package privat) final voidGot to the start position of the tape image.private voidwriteFilesize(int[] buf) Write a filesize to the tape image, if the image contents has changed.
-
Felddetails
-
ISO88591
-
TAP_HDR_SIZE
public static final int TAP_HDR_SIZESize of the TAP file header.- Siehe auch:
-
TAP_HDR_MAGIC_OFFSET
public static final int TAP_HDR_MAGIC_OFFSETOffset of the header magic string.- Siehe auch:
-
TAP_HDR_VERSION
public static final int TAP_HDR_VERSIONOffset of the TAP header version info.- Siehe auch:
-
TAP_HDR_SYSTEM
public static final int TAP_HDR_SYSTEMOffset of the TAP header system info.- Siehe auch:
-
TAP_HDR_LEN
public static final int TAP_HDR_LENLength of the TAP file header infos.- Siehe auch:
-
fd
TAP file descriptor. -
size
long sizeSize of the TAP image. -
version
byte versionThe TAP version byte. -
system
byte systemSystem the image is made for. -
currentFilePosition
long currentFilePositionPosition in the current file. -
offset
int offsetHeader offset. -
cycleCounter
int cycleCounterTape counter in machine-cycles/8 for even looong tapes. -
cycleCounterTotal
int cycleCounterTotalTape length in machine-cycles/8. -
counter
int counterTape counter. -
readOnly
private boolean readOnlyRead only tape? -
hasChanged
boolean hasChangedHas the tap changed? We correct the size then.
-
-
Konstruktordetails
-
Tap
public Tap()Constructor.
-
-
Methodendetails
-
isReadOnly
public boolean isReadOnly()- Gibt zurück:
- Is this tape read only?
-
readHeader
public final boolean readHeader()Read TAP header.- Gibt zurück:
- Is the file descriptor a valid TAP file?
-
open
Open tape image.- Parameter:
tapeFile- tape file to open- Gibt zurück:
- Is this image a TAP image file?
- Löst aus:
IOException- tape image read error
-
close
Close tape image.- Löst aus:
IOException- tape image read error
-
writeFilesize
Write a filesize to the tape image, if the image contents has changed.- Parameter:
buf- array containing one int with the file size- Löst aus:
IOException- tape image write error
-
seekStart
Got to the start position of the tape image.- Löst aus:
IOException- tape image write error
-