xxl.io
Class URLInputIterator

java.lang.Object
  |
  +--xxl.cursors.AbstractCursor
        |
        +--xxl.io.InputIterator
              |
              +--xxl.io.URLInputIterator

public class URLInputIterator
extends InputIterator

This class creates an InputIterator for a given URL. Sample usage:


	public static void main(String[] args) throws MalformedURLException{
		URLInputIterator it = new URLInputIterator(
			new Function(){
				public Object invoke(){
					return new KPE(2);
				}
			},
			new URL("http://www.mathematik.uni-marburg.de/DBS/xxl/rr_small.bin")
		);
		while(it.hasNext())
			System.out.println(it.next());
	}


Fields inherited from class xxl.io.InputIterator
converter, input
 
Fields inherited from class xxl.cursors.AbstractCursor
hasNext, iterator, next
 
Constructor Summary
URLInputIterator(Converter converter, java.net.URL url)
           
URLInputIterator(Converter converter, java.net.URL url, int bufferSize)
           
URLInputIterator(Function newObject, java.net.URL url)
           
URLInputIterator(Function newObject, java.net.URL url, int bufferSize)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class xxl.io.InputIterator
computeNext
 
Methods inherited from class xxl.cursors.AbstractCursor
close, hasNext, next, peek, remove, reset, setNext, setNextIterator, supportsPeek, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLInputIterator

public URLInputIterator(Converter converter,
                        java.net.URL url,
                        int bufferSize)

URLInputIterator

public URLInputIterator(Function newObject,
                        java.net.URL url,
                        int bufferSize)

URLInputIterator

public URLInputIterator(Converter converter,
                        java.net.URL url)

URLInputIterator

public URLInputIterator(Function newObject,
                        java.net.URL url)
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception