Package net.sourceforge.uiq3.tape
Class SE_Interface
- java.lang.Object
-
- net.sourceforge.uiq3.tape.Interface
-
- net.sourceforge.uiq3.tape.SE_Interface
-
public final class SE_Interface extends Interface
Cassette interface for JavaSE- Author:
- "Martin Krischik" «krischik@users.sourceforge.net»
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sourceforge.uiq3.tape.Interface
Interface.File_Type
-
-
Field Summary
Fields Modifier and Type Field Description private File
Connection
File connectionprivate FileInputStream
In_Connection
File in connectionprivate static Logger
Logger
Class logger instance.private FileOutputStream
Out_Connection
File out connectionprivate static String
TAG
Class logger tag.-
Fields inherited from class net.sourceforge.uiq3.tape.Interface
Application_Prefix, Calculator_Files, Empty_File_Name, MAC_OS_X, Simple_ASCII, Text_Prefix
-
-
Constructor Summary
Constructors Constructor Description SE_Interface()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Close(String Creator)
Close files and all streams attached to them.DataOutputStream
Create_Stream(@NotNull String Home_Directory, @NotNull String Filename)
open stream for binarywriting.Writer
Create_Writer(@NotNull String Home_Directory, @NotNull String Filename)
open stream for binarywriting.long
File_Size()
Get file SizeReader
Open_Reader(@NotNull String Home_Directory, @NotNull String Filename)
open stream for reading.DataInputStream
Open_Stream(@NotNull String Home_Directory, @NotNull String Filename)
open stream for reading.String
toString()
-
Methods inherited from class net.sourceforge.uiq3.tape.Interface
Is_Calculator_File, Is_Calculator_File, Is_Calculator_File, Type_Of_File, Type_Of_File, Type_Of_File
-
-
-
-
Field Detail
-
Logger
private static final Logger Logger
Class logger instance.
-
TAG
private static final String TAG
Class logger tag.
-
Connection
@Nullable private File Connection
File connection
-
In_Connection
@Nullable private FileInputStream In_Connection
File in connection
-
Out_Connection
@Nullable private FileOutputStream Out_Connection
File out connection
-
-
Method Detail
-
Close
public void Close(String Creator) throws IOException
Close files and all streams attached to them.- Parameters:
Creator
- either 602 or 603 depending on system used- Throws:
IOException
- could not close stream
-
Create_Stream
@NotNull public DataOutputStream Create_Stream(@NotNull @NotNull String Home_Directory, @NotNull @NotNull String Filename) throws FileNotFoundException
open stream for binarywriting.
- Parameters:
Home_Directory
- home directory to use when filename is not absoluteFilename
- file name- Returns:
- return data strea
- Throws:
FileNotFoundException
- file was not found
-
Create_Writer
@NotNull public Writer Create_Writer(@NotNull @NotNull String Home_Directory, @NotNull @NotNull String Filename) throws FileNotFoundException, UnsupportedEncodingException
open stream for binarywriting.
- Parameters:
Home_Directory
- home directory to use when filename is not absoluteFilename
- file name- Returns:
- return data strea
- Throws:
FileNotFoundException
- file was not foundUnsupportedEncodingException
-
File_Size
public long File_Size()
Get file Size- Returns:
- File size
-
Open_Reader
@NotNull public Reader Open_Reader(@NotNull @NotNull String Home_Directory, @NotNull @NotNull String Filename) throws FileNotFoundException, UnsupportedEncodingException
open stream for reading.
- Parameters:
Home_Directory
- home directory to use when filename is not absoluteFilename
- file name- Returns:
- return data strea
- Throws:
FileNotFoundException
- file was not foundUnsupportedEncodingException
-
Open_Stream
@NotNull public DataInputStream Open_Stream(@NotNull @NotNull String Home_Directory, @NotNull @NotNull String Filename) throws FileNotFoundException
open stream for reading.
- Parameters:
Home_Directory
- home directory to use when filename is not absoluteFilename
- file name- Returns:
- return data strea
- Throws:
FileNotFoundException
- file was not found
-
-