ccs.cpc
Class VFileTrack
java.lang.Object
ccs.cpc.VFileTrack
- All Implemented Interfaces:
- ccs.audio.Track
public class VFileTrack
- extends java.lang.Object
- implements ccs.audio.Track
A Track which gets its data from a VFile.
Constructor Summary |
VFileTrack(VFile vf)
A VFileTrack with an implicit title from the VFile itself. |
VFileTrack(VFile vf,
java.lang.String title)
A VFileTrack with an explicit title, eg. from an XSPF playlist. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VFileTrack
public VFileTrack(VFile vf)
- A VFileTrack with an implicit title from the VFile itself.
- Parameters:
vf
- The VFile to track from.
VFileTrack
public VFileTrack(VFile vf,
java.lang.String title)
- A VFileTrack with an explicit title, eg. from an XSPF playlist.
- Parameters:
vf
- The VFile to track from.title
- The VFile's title.
getVF
public VFile getVF()
getTitle
public java.lang.String getTitle()
- Specified by:
getTitle
in interface ccs.audio.Track
- Returns:
- The track title, or the best approximation you have thereto.
May not be null.
openStream
public java.io.InputStream openStream()
throws java.io.IOException
- Specified by:
openStream
in interface ccs.audio.Track
- Returns:
- The track audio data as a stream.
- Throws:
java.io.IOException