Package net.sourceforge.uiq3.tape
Class Interface
- java.lang.Object
-
- net.sourceforge.uiq3.tape.Interface
-
- Direct Known Subclasses:
SE_Interface
public class Interface extends Object
Cassette interface for JavaSE- Author:
- "Martin Krischik" «krischik@users.sourceforge.net»
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Interface.File_Type
there are six file types
-
Field Summary
Fields Modifier and Type Field Description static String
Application_Prefix
Mime type prefix.static ArrayList<String>
Calculator_Files
File types for my calculator app.static int[]
Empty_File_Name
No CASIO style filename to embed into the headerstatic boolean
MAC_OS_X
true when we run on mac os xstatic @NonNls String
Simple_ASCII
private static String
TAG
class logger tag.static String
Text_Prefix
Mime type prefix.
-
Constructor Summary
Constructors Constructor Description Interface()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
Is_Calculator_File(@NotNull String Filename)
check if file is a valid calculator filestatic boolean
Is_Calculator_File(File Filename)
check if file is a valid calculator filestatic boolean
Is_Calculator_File(Path Filename)
check if file is a valid calculator filestatic @NotNull Interface.File_Type
Type_Of_File(@NotNull String Filename)
get type from database value.static @NotNull Interface.File_Type
Type_Of_File(File Filename)
get type from database value.static @NotNull Interface.File_Type
Type_Of_File(Path Filename)
get type from database value.
-
-
-
Field Detail
-
TAG
private static final String TAG
class logger tag.
-
Application_Prefix
public static final String Application_Prefix
Mime type prefix. The middle consist of either "602" or "603".
- See Also:
- Constant Field Values
-
Calculator_Files
@NotNull public static final ArrayList<String> Calculator_Files
File types for my calculator app. Must be an ArrayList — because that is what intent extras can take.
author: Martin Krischik" «krischik@users.sourceforge.net»
-
Empty_File_Name
public static final int[] Empty_File_Name
No CASIO style filename to embed into the header
-
MAC_OS_X
public static final boolean MAC_OS_X
true when we run on mac os x
-
Simple_ASCII
@NonNls public static final @NonNls String Simple_ASCII
- See Also:
- Constant Field Values
-
Text_Prefix
public static final String Text_Prefix
Mime type prefix. The middle consist of either "602" or "602".
- See Also:
- Constant Field Values
-
-
Method Detail
-
Type_Of_File
@NotNull public static @NotNull Interface.File_Type Type_Of_File(@NotNull Path Filename) throws IllegalArgumentException
get type from database value.
- Parameters:
Filename
- a filename- Returns:
- the file type
- Throws:
IllegalArgumentException
- the extension of the filename was not “pf”, “df” or “af”
-
Type_Of_File
@NotNull public static @NotNull Interface.File_Type Type_Of_File(@NotNull File Filename) throws IllegalArgumentException
get type from database value.
- Parameters:
Filename
- a filename- Returns:
- the file type
- Throws:
IllegalArgumentException
- the extension of the filename was not “pf”, “df” or “af”
-
Type_Of_File
@NotNull public static @NotNull Interface.File_Type Type_Of_File(@NotNull @NotNull String Filename) throws IllegalArgumentException
get type from database value.
- Parameters:
Filename
- a filename- Returns:
- the file type
- Throws:
IllegalArgumentException
- the extension of the filename was not “pf”, “df” or “af”
-
Is_Calculator_File
public static boolean Is_Calculator_File(@NotNull Path Filename)
check if file is a valid calculator file
- Parameters:
Filename
- a filename- Returns:
- true if calculator file
-
Is_Calculator_File
public static boolean Is_Calculator_File(@NotNull File Filename)
check if file is a valid calculator file
- Parameters:
Filename
- a filename- Returns:
- true if calculator file
-
Is_Calculator_File
public static boolean Is_Calculator_File(@NotNull @NotNull String Filename)
check if file is a valid calculator file
- Parameters:
Filename
- a filename- Returns:
- true if calculator file
-
-