org.xnap.plugin.opennap.net
Class WSXFileReader

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

public class WSXFileReader
extends java.lang.Object
implements OpenNapServerReader, WSXFile


Field Summary
 
Fields inherited from interface org.xnap.plugin.opennap.net.WSXFile
ADDRESS, AUTO_CONNECT, CLIENT_INFO, NAME_VALUE_DELIM, NETWORK, NOT_AVAILABLE, PORT, TYPE, TYPE_META, TYPE_NORMAL, USER_PASSWORD, USERNAME
 
Constructor Summary
WSXFileReader(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

WSXFileReader

public WSXFileReader(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.