|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.chaosserver.jtunes.playlist.io.M3uPlayListManager
Manages the loading and exporting of playlists in the M3U format.
Nested Class Summary | |
protected class |
M3uPlayListManager.ExporterRunnable
Class used to export a playlist in a new thread. |
Constructor Summary | |
M3uPlayListManager()
|
Method Summary | |
protected void |
copyFile(File originalFile,
File destinationFolder)
Copies a file from one location to another. |
void |
export(File exportDirectory,
PlayList playList)
Exports the playlist to a new directory and copies all the songs into that directory. |
protected void |
exportCurrentThread(File exportDirectory,
PlayList playList)
Exports the playlist in the current thread. |
PlayList |
load(File playListFile)
Loads a playlist from an M3U file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public M3uPlayListManager()
Method Detail |
public PlayList load(File playListFile)
playListFile
- the file to load as an M3U PlayList
public void export(File exportDirectory, PlayList playList)
exportDirectory
- directory to export the playlist and
move songs intoplayList
- the playlist to exportprotected void exportCurrentThread(File exportDirectory, PlayList playList)
exportDirectory
- directory to export the playlist and
move songs intoplayList
- the playlist to exportprotected void copyFile(File originalFile, File destinationFolder) throws CopyException
originalFile
- the original file to copydestinationFolder
- the destination folder to copy the
file to
CopyException
- indicates an error copying the file between
locations
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |