Package com.tagtraum.audiokern
Class AudioSongLocation
- java.lang.Object
-
- com.tagtraum.audiokern.AudioSongLocation
-
public class AudioSongLocation extends Object
AudioSong Location.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description AudioSongLocation(File file)AudioSongLocation(String location)AudioSongLocation(Path path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PathgetCanonicalFile()PathgetFile()StringgetLocation()booleanisFile()static PathtoCanonical(Path file)Returns the 'real' representation of the given file viaPath.toRealPath(LinkOption...), or - if that's impossible due to anIOExceptionor because the file does not exist - the absolute file name.StringtoString()
-
-
-
Method Detail
-
getLocation
public String getLocation()
-
getCanonicalFile
public Path getCanonicalFile()
-
toCanonical
public static Path toCanonical(Path file)
Returns the 'real' representation of the given file viaPath.toRealPath(LinkOption...), or - if that's impossible due to anIOExceptionor because the file does not exist - the absolute file name.- Parameters:
file- file- Returns:
- canonical or as fallback absolute filename.
-
getFile
public Path getFile()
-
isFile
public boolean isFile()
-
-