java.lang.Objectucot.input.InputCollection
public class InputCollection
Contains input handlers.
Field Summary | |
---|---|
private java.util.Vector<InputInterface> |
inputs
|
Constructor Summary | |
---|---|
InputCollection()
Creates input collection. |
Method Summary | |
---|---|
void |
add(InputInterface inf)
Adds given input handler to the collection. |
InputInterface |
getInput(int index)
Returns handler by its index |
int |
getInputCount()
|
InputInterface |
getInputForUrl(java.net.URL url)
Returns input that can read file on given url |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Vector<InputInterface> inputs
Constructor Detail |
---|
public InputCollection()
Creates input collection.
Method Detail |
---|
public void add(InputInterface inf)
Adds given input handler to the collection.
inf
- public InputInterface getInputForUrl(java.net.URL url) throws java.io.FileNotFoundException
Returns input that can read file on given url
url
- of the file we want to read
java.io.FileNotFoundException
public int getInputCount()
public InputInterface getInput(int index)
Returns handler by its index
index
- Index of the wanted handler.