|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfovis.utils.BasicFactory
infovis.io.AbstractReaderFactory
public abstract class AbstractReaderFactory
Abstract factory of table readers.
| Nested Class Summary | |
|---|---|
static class |
AbstractReaderFactory.AbstractCreator
|
static interface |
AbstractReaderFactory.Creator
Interface for Table Reader creators. |
| Constructor Summary | |
|---|---|
AbstractReaderFactory(String factoryName)
Constructor for TableReaderFactory. |
|
| Method Summary | |
|---|---|
void |
add(AbstractReaderFactory.Creator c)
Adds a creator of table reader. |
AbstractReader |
create(InputStream in,
String name,
Table table)
|
AbstractReader |
create(String name,
Table table)
Returns an AbstractReader able to read the specified
resource name or null. |
AbstractReaderFactory.Creator |
getCreatorAt(int index)
Returns the Creator at a specified index. |
AbstractReaderFactory.Creator |
getCreatorNamed(String name)
|
Iterator |
iterator()
Returns an iterator over the added creators. |
boolean |
remove(AbstractReaderFactory.Creator c)
Removes a creator of table reader. |
boolean |
tryRead(String name,
Table table)
|
| Methods inherited from class infovis.utils.BasicFactory |
|---|
loadProperties |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractReaderFactory(String factoryName)
| Method Detail |
|---|
public void add(AbstractReaderFactory.Creator c)
c - the Creator.public boolean remove(AbstractReaderFactory.Creator c)
c - the Creator.
true if the Creator was removed.public Iterator iterator()
public AbstractReaderFactory.Creator getCreatorAt(int index)
index - the index.
public AbstractReaderFactory.Creator getCreatorNamed(String name)
public AbstractReader create(String name,
Table table)
AbstractReader able to read the specified
resource name or null.
name - the resource name.table - the table.
AbstractReader able to read the specified
resource name or null.
public AbstractReader create(InputStream in,
String name,
Table table)
public boolean tryRead(String name,
Table table)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||