net.chaosserver.jtunes.playlist
Class PlayListEntry

java.lang.Object
  |
  +--net.chaosserver.jtunes.playlist.PlayListEntry

public class PlayListEntry
extends Object

Holds a single item entry in a playlist file.


Field Summary
protected  File playListEntryFile
          Holds the individual file for this entry.
protected  File playListFile
          Holds the file of the playlist.
 
Constructor Summary
PlayListEntry(File playListFile, String filename)
          Constructs a new playListEntry.
 
Method Summary
 String getAbsolutePath()
          Gets the absolute name of the file.
 String getName()
          Gets the simple name of the file.
 File getPlayListEntryFile()
          Gets back the file for the specific playlist entry.
 String getRelativePath()
          Gets the relative name of the file to the containing playlist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

playListFile

protected File playListFile
Holds the file of the playlist.


playListEntryFile

protected File playListEntryFile
Holds the individual file for this entry.

Constructor Detail

PlayListEntry

public PlayListEntry(File playListFile,
                     String filename)
Constructs a new playListEntry.

Parameters:
playListFile - the playlist file this entry in inside
filename - the name of the playlist entry
Method Detail

getPlayListEntryFile

public File getPlayListEntryFile()
Gets back the file for the specific playlist entry.

Returns:
the file for the playlist entry

getName

public String getName()
Gets the simple name of the file.

Returns:
the simple name of the file
See Also:
File.getName()

getAbsolutePath

public String getAbsolutePath()
Gets the absolute name of the file.

Returns:
the absolute name of the file
See Also:
File.getAbsolutePath()

getRelativePath

public String getRelativePath()
Gets the relative name of the file to the containing playlist

Returns:
the relative name of the file to the containing playlist


Copyright ?? 20030801