Package net.sourceforge.uiq3.fa6
Class SE_Tape
- java.lang.Object
-
- net.sourceforge.uiq3.fx603p.Interface
-
- net.sourceforge.uiq3.fa6.Tape
-
- net.sourceforge.uiq3.fa6.SE_Tape
-
public final class SE_Tape extends Tape
Cassette interface for JavaSE- Author:
- "Martin Krischik" «krischik@users.sourceforge.net»
-
-
Field Summary
Fields Modifier and Type Field Description private SE_Interface
delegate
Delegate class to emulate mutiple inheritanceprivate static Logger
logger
class logger instanceprivate static String
TAG
class logger tag.-
Fields inherited from class net.sourceforge.uiq3.fa6.Tape
File_Name, File_Read, Home_Directory, Last_Header, No_Name, Setting_Name
-
-
Constructor Summary
Constructors Constructor Description SE_Tape(Calculator Owner)
initialise cassette interface
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Close()
Close files and all streams attached to them.protected DataOutputStream
Create_Stream(@NotNull String Filename)
Create a new file for output.long
File_Size()
Get file Sizeprotected DataInputStream
Open_Stream(@NotNull String Filename)
Create a new file for output.@NotNull String
toString()
-
Methods inherited from class net.sourceforge.uiq3.fa6.Tape
Create, Home_Directory, Home_Directory, Open, Open, Read, Read, Read_Alpha, Read_Display, Read_EOF, Read_M, Read_Steps, Write, Write, Write, Write_Alpha, Write_Display, Write_EOF, Write_M
-
Methods inherited from class net.sourceforge.uiq3.fx603p.Interface
Convert_To_Alpha, Convert_To_Java, Convert_To_Java, Convert_To_Java, Convert_To_Token, Is_Enabled, Set_Enable
-
-
-
-
Field Detail
-
logger
private static final Logger logger
class logger instance
-
TAG
private static final String TAG
class logger tag.
-
delegate
private final SE_Interface delegate
Delegate class to emulate mutiple inheritance
-
-
Constructor Detail
-
SE_Tape
public SE_Tape(Calculator Owner)
initialise cassette interface
-
-
Method Detail
-
Close
public void Close() throws Op_Error
Close files and all streams attached to them.- Overrides:
Close
in classTape
- Throws:
Op_Error
- Something went wrong- See Also:
Tape.Close()
-
Create_Stream
protected DataOutputStream Create_Stream(@NotNull @NotNull String Filename) throws Op_Error
Description copied from class:Tape
Create a new file for output.- Specified by:
Create_Stream
in classTape
- Parameters:
Filename
- filename.- Returns:
- data stream to write to.
- Throws:
Op_Error
- io error.- See Also:
Tape.Create_Stream(java.lang.String)
-
File_Size
public long File_Size() throws Op_Error
Get file Size- Specified by:
File_Size
in classTape
- Returns:
- File size
- Throws:
Op_Error
- any file io error- See Also:
Tape.File_Size()
-
Open_Stream
@Nullable protected DataInputStream Open_Stream(@NotNull @NotNull String Filename) throws Op_Error
Create a new file for output.- Specified by:
Open_Stream
in classTape
- Parameters:
Filename
- filename.- Returns:
- data stream to read from.
- Throws:
Op_Error
- io error.- See Also:
Tape.Create_Stream(java.lang.String)
-
-