Class FileMagic
java.lang.Object
org.applecommander.util.FileMagic
Provide some shared file identification across FileStores.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<FileMagic.FileTypeSummary> findProdosFileType(int fileType, int auxType) Filter through the ProDOS metadata and generate a file type summary using theaux_typeas primary and then falling back to the ProDOSfile_type.static ContentTypegetProdosContentType(int fileType, int auxType) Given a prodosfile_typeandaux_type, identify the content type it represents.static StringgetProdosFileTypeText(int fileType, int auxType) Given a prodosfile_typeandaux_type, identify the 3-letter abbreviation to use.static ContentTypeidentifyContentType(String fileName) Given a filename, try to identify the content type.
-
Field Details
-
PRODOS_FILE_TYPES
-
-
Constructor Details
-
FileMagic
public FileMagic()
-
-
Method Details
-
getProdosFileTypeText
Given a prodosfile_typeandaux_type, identify the 3-letter abbreviation to use. -
getProdosContentType
Given a prodosfile_typeandaux_type, identify the content type it represents. -
identifyContentType
Given a filename, try to identify the content type. -
findProdosFileType
Filter through the ProDOS metadata and generate a file type summary using theaux_typeas primary and then falling back to the ProDOSfile_type.
-