Class XSPFPlayListExporter
- java.lang.Object
-
- com.tagtraum.beatunes.library.playlistexporter.XSPFPlayListExporter
-
- All Implemented Interfaces:
PlayListExporter
public class XSPFPlayListExporter extends Object implements PlayListExporter
XSPF ("spiff") PlayListExporter.- Author:
- Hendrik Schreiber
- See Also:
- XSPF.org
-
-
Constructor Summary
Constructors Constructor Description XSPFPlayListExporter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
export(Path file, PlayList playList, boolean useRelativePathsIfPossible, ProgressListener progressListener)
Exports the given playlist to the given file.String
getFileExtension()
Lowercase file extension (without the '.').static String
toXML(String s)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tagtraum.beatunes.library.PlayListExporter
getDescription, getId
-
-
-
-
Method Detail
-
getFileExtension
public String getFileExtension()
Description copied from interface:PlayListExporter
Lowercase file extension (without the '.'). E.g."m3u"
- Specified by:
getFileExtension
in interfacePlayListExporter
- Returns:
- file extension
-
export
public void export(Path file, PlayList playList, boolean useRelativePathsIfPossible, ProgressListener progressListener) throws IOException
Description copied from interface:PlayListExporter
Exports the given playlist to the given file. Deprecated,- Specified by:
export
in interfacePlayListExporter
- Parameters:
file
- file to write toplayList
- playlist to exportuseRelativePathsIfPossible
- use relative paths, if possibleprogressListener
- progressListener that lets you report... well, progress- Throws:
IOException
- if something goes wrong
-
-