ucot.input
Class InputCollection

java.lang.Object
  extended by ucot.input.InputCollection

public class InputCollection
extends java.lang.Object

Contains input handlers (core.input.InputInterface).


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

inputs

private java.util.Vector<InputInterface> inputs
Constructor Detail

InputCollection

public InputCollection()
Creates input collection.

Method Detail

add

public void add(InputInterface inf)
Adds given input handler to the collection.

Parameters:
inf -

getInputForUrl

public InputInterface getInputForUrl(java.net.URL url)
Returns input that can read file on given url

Parameters:
url - of the file we want to read
Returns:
InputInterface that can read file or null if none can

getInputCount

public int getInputCount()
Returns:
How many different handlers there are.

getInput

public InputInterface getInput(int index)
Returns handler by its index

Parameters:
index - Index of the wanted handler.
Returns:
The handler at that index.