ccs.audio
Class URLTrack

java.lang.Object
  extended by ccs.audio.URLTrack
All Implemented Interfaces:
Track

public class URLTrack
extends java.lang.Object
implements Track

A Track which is accessed via a URL.


Constructor Summary
URLTrack(java.net.URL srcu)
          A UrlTrack with an implicit title from the URL itself.
URLTrack(java.net.URL srcu, java.lang.String title)
          A UrlTrack with an explicit title (eg. from a playlist file).
 
Method Summary
 java.lang.String getTitle()
           
 java.io.InputStream openStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLTrack

public URLTrack(java.net.URL srcu)
A UrlTrack with an implicit title from the URL itself.


URLTrack

public URLTrack(java.net.URL srcu,
                java.lang.String title)
A UrlTrack with an explicit title (eg. from a playlist file).

Method Detail

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface 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 Track
Returns:
The track audio data as a stream.
Throws:
java.io.IOException