org.relayirc.chatengine
Class ServerList

java.lang.Object
  |
  +--org.relayirc.chatengine.ServerList

public class ServerList
extends java.lang.Object
implements java.io.Serializable

A list of IRC servers that can be constructed by reading a MIRC servers.ini file. TODO: Finish exportMircFile()

See Also:
Serialized Form

Constructor Summary
ServerList()
          Construct empty server list.
ServerList(java.io.File file)
          Construct server list from MIRC servers.ini file.
ServerList(java.util.Vector servers)
          Construct server list from vector of servers.
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Property change support.
 void addServer(Server svr)
          Add server to user's list of IRC servers.
 void exportMircFile(java.lang.String fileName)
          Export server list file to MIRC format - NOT IMPLEMENTED.
 Server getServerAt(int index)
           
 int getServerCount()
           
 java.util.Vector getServers()
           
 void importMircFile(java.io.File file)
          Import a MIRC format servers file.
static java.lang.String intArrayToString(int[] intArray)
          Convert integer array to a string.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Property change support.
 void removeServer(Server svr)
          Remove server from user's list of IRC servers.
static int[] stringToIntArray(java.lang.String intList)
          Convert string to an integer array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerList

public ServerList()
Construct empty server list.

ServerList

public ServerList(java.util.Vector servers)
Construct server list from vector of servers.
Parameters:
servers - Vector of servers.

ServerList

public ServerList(java.io.File file)
Construct server list from MIRC servers.ini file.
Parameters:
fileName - Name of file to read.
Method Detail

getServerCount

public int getServerCount()

getServerAt

public Server getServerAt(int index)

getServers

public java.util.Vector getServers()

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Property change support.

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Property change support.

addServer

public void addServer(Server svr)
Add server to user's list of IRC servers.

removeServer

public void removeServer(Server svr)
Remove server from user's list of IRC servers.

importMircFile

public void importMircFile(java.io.File file)
Import a MIRC format servers file.

intArrayToString

public static java.lang.String intArrayToString(int[] intArray)
Convert integer array to a string.

stringToIntArray

public static int[] stringToIntArray(java.lang.String intList)
Convert string to an integer array.

exportMircFile

public void exportMircFile(java.lang.String fileName)
Export server list file to MIRC format - NOT IMPLEMENTED.