Package com.tagtraum.beatunes.library
Interface PlayListExporter
-
- All Known Implementing Classes:
CratePlayListExporter
,CSVPlayListExporter
,M3U8PlayListExporter
,M3UPlayListExporter
,PLSv2PlayListExporter
,WPLPlayListExporter
,XSPFPlayListExporter
public interface PlayListExporter
Exports a playlist to a file. Examples for this could be the M3U playlist format, used by WinAmp and others or the XSPF format.- Author:
- Hendrik Schreiber
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
export(Path file, PlayList playList, boolean useRelativePathsIfPossible, ProgressListener progressListener)
Exports the given playlist to the given file.default String
getDescription()
Description of this exporter.String
getFileExtension()
Lowercase file extension (without the '.').default String
getId()
Lets you provide an id for this exporter.
-
-
-
Method Detail
-
getFileExtension
String getFileExtension()
Lowercase file extension (without the '.'). E.g."m3u"
- Returns:
- file extension
-
getDescription
default String getDescription()
Description of this exporter. By default the file extension converted to upper case.- Returns:
- description
- See Also:
getFileExtension()
-
getId
default String getId()
Lets you provide an id for this exporter. The id may be used for referring to an instance of this exporter in persistent configuration files. By default this method returnsClass.getSimpleName()
for this instance.- Returns:
- id - unless you plan to use multiple instances of it, returning the fully qualified classname is recommended
-
export
void export(Path file, PlayList playList, boolean useRelativePathsIfPossible, ProgressListener progressListener) throws IOException
Exports the given playlist to the given file. Deprecated,- 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
-
-