org.xnap.plugin.opennap.net
Class OpenNapServerFileReader

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

public class OpenNapServerFileReader
extends java.lang.Object
implements OpenNapServerReader

Creates OpenNapServer objects from a plain text file.


Constructor Summary
OpenNapServerFileReader(java.lang.String filename)
           
 
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

OpenNapServerFileReader

public OpenNapServerFileReader(java.lang.String filename)
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.