org.xnap.plugin.opennap.net
Class NapigatorReader

java.lang.Object
  extended by org.xnap.plugin.opennap.net.NapigatorReader
All Implemented Interfaces:
OpenNapServerReader

public class NapigatorReader
extends java.lang.Object
implements OpenNapServerReader

Connects to the OpenNapigator index server and creates OpenNapServer objects.


Constructor Summary
NapigatorReader(java.lang.String url)
           
 
Method Summary
 void close()
          Invoked when the stream is closed.
 void open()
          Invoked when the stream is opened.
 OpenNapServer read()
          Called successively after open was invoked.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NapigatorReader

public NapigatorReader(java.lang.String url)
Method Detail

close

public void close()
Description copied from interface: OpenNapServerReader
Invoked when the stream is closed.

Specified by:
close in interface OpenNapServerReader

open

public void open()
          throws java.io.IOException
Description copied from interface: OpenNapServerReader
Invoked when the stream is opened.

Specified by:
open in interface OpenNapServerReader
Throws:
java.io.IOException

read

public OpenNapServer read()
                   throws java.io.IOException
Description copied from interface: OpenNapServerReader
Called successively after open was invoked.

Specified by:
read in interface OpenNapServerReader
Returns:
null, if the end of the stream has been reached, close will be called then
Throws:
java.io.IOException


Copyright © 2001-2005 XNap Team. All Rights Reserved.