Package com.tagtraum.tunes
Interface FileTrack
-
public interface FileTrack extends Track
File based track - i.e. not a radio station.- Author:
- Hendrik Schreiber
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tagtraum.audiokern.AudioSong
AudioSong.CloudStatus, AudioSong.Instrumentation, AudioSong.Liking, AudioSong.MediaKind, AudioSong.TrackType
-
-
Field Summary
-
Fields inherited from interface com.tagtraum.audiokern.AudioSong
ACOUSTIC_NAMES, ELECTRONIC_NAMES
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
deleteFile()
Deletes (or moves to trash) the file behind this track.default Path
getFile()
File of this song, ornull
, if it cannot be found.Path
getFile(boolean refresh)
File of this track.String
getPath()
File path (not URL).-
Methods inherited from interface com.tagtraum.audiokern.AudioSong
addArtwork, addBackCoverArtwork, addFrontCoverArtwork, addPropertyChangeListener, addPropertyChangeListener, canWrite, download, getAlbumIds, getAlbumLiking, getAlbumReplayGain, getArtistIds, getArtworks, getBackCoverImage, getBeats, getBeatsAlgorithm, getBeatsPerMinute, getBeatsPerMinuteAlgorithm, getBitRate, getCloudStatus, getColor, getContentRating, getCustom1, getCustom2, getCustom3, getCustom4, getCustom5, getDanceability, getDanceabilityAlgorithm, getDateAdded, getDateAnalyzed, getDateModified, getDescription, getEpisode, getEpisodeOrder, getFingerprint, getFrontCoverImage, getId, getImage, getImages, getImplementation, getImplementations, getInstrumentation, getInstrumentationAlgorithm, getInstrumentationBasedOnGenreAndTags, getKey, getKeyAlgorithm, getKind, getLanguage, getLiking, getLocation, getLocation, getLoudness, getLyricsTermFrequencies, getMeasuresPerMinute, getMediaKind, getMood, getMoodAlgorithm, getMoodKeywords, getMovement, getMovementCount, getMovementNumber, getName, getPlayDate, getPlayDateUTC, getPlayFrequency, getPlaySkipRatio, getPopularity, getPropertyChangeListeners, getPropertyChangeListeners, getPurchaseURL, getRelativeSpectralEntropyMean, getReleaseDate, getRemoteDisliked, getRemoteLoved, getRemotePlayFrequency, getRemotePlaySkipRatio, getRemoteRating, getRemoteUpdateDate, getRMSMean, getRMSStandardDeviation, getSampleRate, getSeason, getSegments, getSegmentsAlgorithm, getSimilarities, getSimilaritiesAlgorithm, getSize, getSkipDate, getSpectralCentroidMean, getSpectralFluctuationPeak, getSpectralFluxMean, getSpectralNoveltyMean, getSpectralSpreadMean, getSpectralVariabilityMean, getSpectrum, getStartTime, getStopTime, getSyncTempoKey, getSyncTempoTuning, getTags, getTempo, getTempoColor, getTempoSpectrum, getTempoTimbreColor, getTimeSignature, getTimeSignatureAlgorithm, getTotalTime, getTrackIds, getTrackReplayGain, getTrackType, getTuning, getTuningAlgorithm, getWork, hasProtectedFileExtension, isAcousticBasedOnGenreTitleAndTags, isClean, isDisabled, isElectronicBasedOnGenreAndTags, isExplicit, isHasVideo, isHD, isPartOfGaplessAlbum, isProtected, isPurchased, isShared, isUnplayed, refreshFromFile, removePropertyChangeListener, removePropertyChangeListener, setAlbumLiking, setAlbumReplayGain, setArtworks, setBackCoverArtwork, setBeats, setBeatsAlgorithm, setBeatsPerMinute, setBeatsPerMinuteAlgorithm, setClean, setColor, setContentRating, setCustom1, setCustom2, setCustom3, setCustom4, setCustom5, setDanceability, setDanceabilityAlgorithm, setDateAnalyzed, setDescription, setDisabled, setEpisode, setEpisodeOrder, setExplicit, setFingerprint, setFrontCoverArtwork, setHasVideo, setHD, setInstrumentation, setInstrumentationAlgorithm, setKey, setKeyAlgorithm, setKind, setLanguage, setLiking, setLocation, setLoudness, setMediaKind, setMood, setMoodAlgorithm, setMoodKeywords, setMovement, setMovementCount, setMovementNumber, setName, setPartOfGaplessAlbum, setPlayDate, setPlayDateUTC, setPopularity, setRelativeSpectralEntropyMean, setReleaseDate, setRemoteDisliked, setRemoteLoved, setRemotePlayFrequency, setRemotePlaySkipRatio, setRemoteRating, setRemoteUpdateDate, setRMSMean, setRMSStandardDeviation, setSeason, setSegments, setSegmentsAlgorithm, setSimilarities, setSimilaritiesAlgorithm, setSkipDate, setSpectralCentroidMean, setSpectralFluctuationPeak, setSpectralFluxMean, setSpectralNoveltyMean, setSpectralSpreadMean, setSpectralVariabilityMean, setSpectrum, setStartTime, setStopTime, setTags, setTempo, setTempoColor, setTempoSpectrum, setTempoTimbreColor, setTimeSignature, setTimeSignatureAlgorithm, setTrackReplayGain, setTrackType, setTuning, setTuningAlgorithm, setUnplayed, setWork
-
Methods inherited from interface com.tagtraum.tunes.Track
delete, getAlbum, getAlbumArtist, getAlbumRating, getArtist, getArtworkCount, getBpm, getComments, getComposer, getDatabaseID, getDiscCount, getDiscNumber, getFinish, getGenre, getGrouping, getIndex, getLyrics, getPlayCount, getPlaylist, getRating, getShow, getSkipCount, getSortAlbum, getSortAlbumArtist, getSortArtist, getSortComposer, getSortName, getSortShow, getStart, getTrackCount, getTrackNumber, getVolumeAdjustment, getYear, isAlbumRatingComputed, isCompilation, isEnabled, isRatingComputed, play, setAlbum, setAlbumArtist, setAlbumRating, setArtist, setBpm, setComments, setCompilation, setComposer, setDiscCount, setDiscNumber, setEnabled, setFinish, setGenre, setGrouping, setLyrics, setPlayCount, setRating, setShow, setSkipCount, setSortAlbum, setSortAlbumArtist, setSortArtist, setSortComposer, setSortName, setSortShow, setStart, setTrackCount, setTrackNumber, setVolumeAdjustment, setYear
-
-
-
-
Method Detail
-
getPath
String getPath()
File path (not URL).
-
getFile
Path getFile(boolean refresh)
Description copied from interface:AudioSong
File of this track. Ifrefresh
is true and the file does not exist anymore, ask the backend app (iTunes, Music.app, ...) for the correct file name. Because of the backend call, this method may block and therefore should be called from the EDT.- Specified by:
getFile
in interfaceAudioSong
- Parameters:
refresh
- refresh from backend- Returns:
- file object for
AudioSong.getLocation()
or null, if a proper file object cannot be formed - See Also:
AudioSong.getLocation()
,AudioSong.getLocation(boolean)
-
getFile
default Path getFile()
Description copied from interface:AudioSong
File of this song, ornull
, if it cannot be found. The default implementation simply callsAudioSong.getFile(boolean)
withrefresh = false
.- Specified by:
getFile
in interfaceAudioSong
- Returns:
- file object for
AudioSong.getLocation()
or null, if a proper file object cannot be formed
-
deleteFile
void deleteFile() throws IOException
Deletes (or moves to trash) the file behind this track.- Throws:
IOException
- if the file can't be deleted
-
-