}
Double quality = (Double) l.get(0);
Integer offset = (Integer) l.get(1);
Integer length = (Integer) l.get(2);
String source = (String) l.get(3);
files.add(new SimpleList(quality, offset, length, source));
}
}
}
catch (ClassCastException cce)
{
if (Configuration.DEBUG)
log.log(Level.FINE, "bad file list", cce);
throw new IllegalArgumentException("invalid file list");
}
try
{
list = (List) attrib.get(URL_SOURCES);
if (Configuration.DEBUG)
log.fine("list=" + String.valueOf(list));
if (list != null)
{
urls.clear();
for (Iterator it = list.iterator(); it.hasNext();)
{
List l = (List) it.next();
if (Configuration.DEBUG)
log.fine("l=" + l);
if (l.size() != 4)
{
if (Configuration.DEBUG)
log.fine("URL list too small: " + l.size());
throw new IllegalArgumentException("invalid URL list");
}
Double quality = (Double) l.get(0);
Integer offset = (Integer) l.get(1);
Integer length = (Integer) l.get(2);
URL source = (URL) l.get(3);
urls.add(new SimpleList(quality, offset, length, source));
}
}
}
catch (ClassCastException cce)
{
if (Configuration.DEBUG)
log.log(Level.FINE, "bad URL list", cce);
throw new IllegalArgumentException("invalid URL list");
}
try
{
list = (List) attrib.get(PROGRAM_SOURCES);
if (Configuration.DEBUG)
log.fine("list=" + String.valueOf(list));
if (list != null)
{
progs.clear();
for (Iterator it = list.iterator(); it.hasNext();)
{
List l = (List) it.next();
if (Configuration.DEBUG)
log.fine("l=" + l);
if (l.size() != 4)
{
if (Configuration.DEBUG)
log.fine("program list too small: " + l.size());
throw new IllegalArgumentException("invalid program list");
}
Double quality = (Double) l.get(0);
Integer offset = (Integer) l.get(1);
Integer length = (Integer) l.get(2);
String source = (String) l.get(3);
progs.add(new SimpleList(quality, offset, length, source));
}
}
}
catch (ClassCastException cce)
{