public class Tap extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TAP_HDR_LEN
Length of the TAP file header infos.
|
static int |
TAP_HDR_MAGIC_OFFSET
Offset of the header magic string.
|
static int |
TAP_HDR_SIZE
Size of the TAP file header.
|
static int |
TAP_HDR_SYSTEM
Offset of the TAP header system info.
|
static int |
TAP_HDR_VERSION
Offset of the TAP header version info.
|
Constructor and Description |
---|
Tap()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close tape image.
|
boolean |
isReadOnly() |
boolean |
open(File tapeFile)
Open tape image.
|
boolean |
readHeader()
Read TAP header.
|
public static final int TAP_HDR_SIZE
public static final int TAP_HDR_MAGIC_OFFSET
public static final int TAP_HDR_VERSION
public static final int TAP_HDR_SYSTEM
public static final int TAP_HDR_LEN
public boolean isReadOnly()
public final boolean readHeader()
public final boolean open(File tapeFile) throws IOException
tapeFile
- tape file to openIOException
- tape image read errorpublic final void close() throws IOException
IOException
- tape image read errorCopyright © 2018 Ken Händel. All rights reserved.