|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--java.util.AbstractSequentialList
|
+--java.util.LinkedList
|
+--helliker.id3.Playlist
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
Playlist()
|
|
| Method Summary | |
void |
loadFromDirectory(java.io.File dir,
boolean recurse)
Reads in mp3s from a directory and adds them to the this playlist. |
void |
loadFromFile(java.io.File m3uFile)
Reads from an existing winamp playlist and reads in the files contained in that playlist. |
java.lang.String |
toString()
Return a string representation of this object. |
void |
writeToFile(java.io.File dest)
Creates a winamp styled playlist from the MP3Files contained in this playlist. |
| Methods inherited from class java.util.LinkedList |
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, remove, remove, removeFirst, removeLast, set, size, toArray, toArray |
| Methods inherited from class java.util.AbstractSequentialList |
iterator |
| Methods inherited from class java.util.AbstractList |
equals, hashCode, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
containsAll, isEmpty, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
public Playlist()
| Method Detail |
public void loadFromDirectory(java.io.File dir,
boolean recurse)
throws java.io.IOException
dir - the directory to look for mp3s inrecurse - whether or not to recurse subdirectoriesjava.io.IOException - if the file specified is not a directory
public void loadFromFile(java.io.File m3uFile)
throws PlaylistException,
java.io.FileNotFoundException,
java.io.IOException
m3uFile - the playlist filePlaylistException - if the file is corruptjava.io.FileNotFoundException - if an error occursjava.io.IOException - if an error occurs
public void writeToFile(java.io.File dest)
throws java.io.IOException
dest - where to save the playlistjava.io.IOException - if an error occurspublic java.lang.String toString()
toString in class java.util.AbstractCollection
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||