ccs.cpc
Class XSPFResultSet

java.lang.Object
  extended by ccs.xml.XSPFFile
      extended by ccs.cpc.XSPFResultSet

public class XSPFResultSet
extends ccs.xml.XSPFFile

An intermediate representation of a result set which has been read from an XSPF file. It can be used either as an intermediate step when opening a result set as a device, or as-is as a viewer playlist.


Field Summary
static java.lang.String DEVMETA
           
static java.lang.String VERMETA
           
 
Fields inherited from class ccs.xml.XSPFFile
builder, title, tracks, tree
 
Constructor Summary
XSPFResultSet(VFile xspf, CpCmdr cpc, boolean isRS)
          Create an empty result-set container.
 
Method Summary
 java.lang.String[] getLosses()
          The list of entries which could not be restored, iff this is a CPC result set.
 VFileTrack[] getResults()
          The list of resolved entries, ready to use.
 java.lang.String getTitle()
          The title, after the XSPF has been read.
 void read()
          Read the XSPF.
 
Methods inherited from class ccs.xml.XSPFFile
getPlaylist, getTrackLocation, getTrackTitle, readFrom, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERMETA

public static final java.lang.String VERMETA
See Also:
Constant Field Values

DEVMETA

public static final java.lang.String DEVMETA
See Also:
Constant Field Values
Constructor Detail

XSPFResultSet

public XSPFResultSet(VFile xspf,
                     CpCmdr cpc,
                     boolean isRS)
Create an empty result-set container.

Parameters:
xspf - The VFile containing the XSPF document.
cpc - Used to resolve VDevices.
isRS - Whether this is a Checkpoint Commander result set. These contain extra metadata. If not, it's assumed to be a generic XSPF.
Method Detail

read

public void read()
          throws java.io.IOException
Read the XSPF. Use this rather than bare readFrom.

Throws:
java.io.IOException

getTitle

public java.lang.String getTitle()
The title, after the XSPF has been read. A CPC result set will always have a non-null title. A generic XSPF may do.

Overrides:
getTitle in class ccs.xml.XSPFFile

getLosses

public java.lang.String[] getLosses()
The list of entries which could not be restored, iff this is a CPC result set. No losses returns a zero-length array, not null.


getResults

public VFileTrack[] getResults()
The list of resolved entries, ready to use.