Tape

abstract class Tape : Interface

Simulation of the FA2 Cassette interface.

Author

"Martin Krischik" «krischik@users.sourceforge.net»

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Convert CASIO Alpha Character into Java String
Link copied to clipboard
private open var Enable: Boolean
When true the interface is enabled.
Link copied to clipboard
open var File_Name: String
Last file name created or opened.
Link copied to clipboard
protected open var File_Read: Long
Characters read from input stream
Link copied to clipboard
protected open var Home_Directory: String
The simulators home directory.
Link copied to clipboard
private open var In: DataInputStream
input stream
Link copied to clipboard
open var Last_Header: Array<Int>
No CASIO style filename to embed into the header
Link copied to clipboard
private val Logger: Logger
private val Logger: Logger
Class logger instance.
Link copied to clipboard
val No_Name: String = "No-Name"
File name for files without name or number.
Link copied to clipboard
private open var Out: DataOutputStream
output stream
Link copied to clipboard
val Setting_Name: String = "fx-602p"
File name for settings.
Link copied to clipboard
private val TAG: String
private val TAG: String
Class logger tag.

Functions

Link copied to clipboard
protected open fun clone(): Any
Link copied to clipboard
open fun Close()
Close files and all streams attached to them.
Link copied to clipboard
open fun Convert_To_Java(Alpha_Character: Short): String
open fun Convert_To_Java(Alpha_String: Array<Short>): String
Convert an CASIO String to an Java String (using the old character set)
Link copied to clipboard
open fun Create(Type: File_Type, File_Name: String, Casio_File_Name: Array<Int>, Header: Int)
Link copied to clipboard
protected abstract fun Create_Stream(Filename: String): DataOutputStream
Create a new file for output.
Link copied to clipboard
fun Enable(Enable: Boolean)
A disabled interface will ignore all input and output.
Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
abstract fun File_Size(): Long
Get file Size
Link copied to clipboard
protected open fun finalize()
Link copied to clipboard
open fun Get_File_Read(): Long
Get amount of bytes read from file
Link copied to clipboard
fun getClass(): Class<out Any>
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun Home_Directory(Home_Directory: String)
The simulators home directory.
Link copied to clipboard
A disabled interface will ignore all input and output.
Link copied to clipboard
fun notify()
Link copied to clipboard
fun notifyAll()
Link copied to clipboard
open fun Open(File_Name: String): File_Type
open file and return type
open fun Open(Type: File_Type, File_Name: String)
open file of given type
Link copied to clipboard
protected abstract fun Open_Stream(Filename: String): DataInputStream
Create a new file for input.
Link copied to clipboard
open fun Read(): Int
Read one byte from the simulated cassette interface.
open fun Read(size: Int): Array<Int>
Read a few byte from the simulated tape interface.
Link copied to clipboard
open fun Read_EOF()
Read over an EOF maker to the next value.
Link copied to clipboard
open fun toString(): String
open fun toString(): String
Link copied to clipboard
fun wait()
Link copied to clipboard
open fun Write(Data: Int)
Write one byte to the simulated cassette interface.
open fun Write(Data: Array<Int>)
writes the bytes in the array to the interface.
Link copied to clipboard
open fun Write_EOF()
Writes an EOF marker into the file.