Class M3U8PlayListExporter
- java.lang.Object
-
- com.tagtraum.beatunes.library.playlistexporter.M3U8PlayListExporter
-
- All Implemented Interfaces:
PlayListExporter
- Direct Known Subclasses:
M3UPlayListExporter
public class M3U8PlayListExporter extends Object implements PlayListExporter
Exports a playlist using the UTF-8 encoded M3U format (a.k.a. M3U8).- Author:
- Hendrik Schreiber
- See Also:
- M3U on Wikipedia
-
-
Constructor Summary
Constructors Constructor Description M3U8PlayListExporter()
-
Method Summary
All 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.protected Charset
getCharset()
String
getFileExtension()
Lowercase file extension (without the '.').protected boolean
isWriteComments()
protected void
setCharset(Charset charset)
protected void
setWriteComments(boolean writeComments)
-
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
-
isWriteComments
protected boolean isWriteComments()
-
setWriteComments
protected void setWriteComments(boolean writeComments)
-
getCharset
protected Charset getCharset()
-
setCharset
protected void setCharset(Charset charset)
-
-