|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectloci.formats.ClassList
public class ClassList
ClassList is a list of classes for use with ImageReader or ImageWriter, parsed from a configuration file such as readers.txt or writers.txt.
Constructor Summary | |
---|---|
ClassList(Class base)
Constructs a list of classes, initially empty. |
|
ClassList(String file,
Class base)
Constructs a list of classes from the given configuration file. |
Method Summary | |
---|---|
void |
addClass(Class c)
Adds the given class, which must be assignable to the base class, to the list. |
Class[] |
getClasses()
Gets the list of classes as an array. |
void |
removeClass(Class c)
Removes the given class from the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassList(Class base)
base
- Base class to which all classes are assignable.public ClassList(String file, Class base) throws IOException
file
- Configuration file containing the list of classes.base
- Base class to which all classes are assignable.
IOException
- if the file cannot be read.Method Detail |
---|
public void addClass(Class c) throws FormatException
FormatException
- if the class is not assignable to the base class.public void removeClass(Class c)
public Class[] getClasses()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |