Package ui.common
Klasse Convenience
java.lang.Object
ui.common.Convenience
Automation for the Player.
- Autor:
- Ken Händel
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprivate static final CartFileFilterprivate static Threadprivate static final DiskFileFilterstatic final BiPredicate<File, File> Magically chooses files to be attached, rules are: Attach first supported file, eventually replace by lexically first disk or tape (e.g. side A, not B).private static final StringAuto-start commands.private static final StringAuto-start commands.private static final Loggerstatic final StringUseless Apple directory.static final BiPredicate<File, File> private static byte[]private static final StringNUVIE video playerprivate Playerprivate static final TapeFileFilterstatic final Comparator<? super File> private static final TuneFileFilterprivate static final UUIDFileFilter -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungAuto-start C64 bundle (ZIP containing well-known formats or un-zipped entry).private voidprivate FilegetToAttach(ConvenienceResult result, File dir, File file, BiPredicate<File, File> mediaTester, File toAttach, boolean canAttachCartridge) Get media file to attach, search recursively.
Note: all files and folders are marked to be deleted.booleanisSupportedMedia(File file) Check well-known disk/tape/cartridge file extension
-
Felddetails
-
TOP_LEVEL_FIRST_COMPARATOR
-
NUVIE_PLAYER_PRG
NUVIE video player- Siehe auch:
-
NUVIE_PLAYER
private static byte[] NUVIE_PLAYER -
LOGGER
-
MACOSX
Useless Apple directory.- Siehe auch:
-
UUID_FILE_FILTER
-
TUNE_FILE_FILTER
-
DISK_FILE_FILTER
-
TAPE_FILE_FILTER
-
CART_FILE_FILTER
-
LEXICALLY_FIRST_MEDIA
Magically chooses files to be attached, rules are: Attach first supported file, eventually replace by lexically first disk or tape (e.g. side A, not B). -
NO_MEDIA
-
LOAD_8_1_RUN
Auto-start commands.- Siehe auch:
-
LOAD_RUN
Auto-start commands.- Siehe auch:
-
player
-
deleteOutdatedTempDirectoriesHook
-
-
Konstruktordetails
-
Convenience
-
-
Methodendetails
-
autostart
public ConvenienceResult autostart(File file, BiPredicate<File, File> isMediaToAttach, String dirEntry) throws IOException, SidTuneError- Löst aus:
IOExceptionSidTuneError
-
autostart
public ConvenienceResult autostart(File file, BiPredicate<File, File> isMediaToAttach, String dirEntry, boolean deepScan) throws IOException, SidTuneErrorAuto-start C64 bundle (ZIP containing well-known formats or un-zipped entry). Attach specific disk/tape/cartridge and automatically start entry.
Note: temporary files are removed or marked to be removed on exit.- Parameter:
file- file to openisMediaToAttach- tester for media to attachdirEntry- if media to attach is a disk this directory entry is loaded after attaching the media (null means load first file on disk).deepScan- scan sub-directories and attach cartridges- Löst aus:
IOException- image read errorSidTuneError- invalid tune
-
getToAttach
private File getToAttach(ConvenienceResult result, File dir, File file, BiPredicate<File, File> mediaTester, File toAttach, boolean canAttachCartridge) Get media file to attach, search recursively.
Note: all files and folders are marked to be deleted.- Parameter:
dir- directory where the files are locatedfile- file to get traversed and searched for mediamediaTester- predicate to check desired mediatoAttach- current media to attach- Gibt zurück:
- media to attach
-
isSupportedMedia
Check well-known disk/tape/cartridge file extension- Parameter:
file- file to check- Gibt zurück:
- is it a well-known format
-
deleteOutdatedTempDirectories
private void deleteOutdatedTempDirectories()
-