com.web_visage.ichatserv.fwk
Class UpdatableStringFileList

java.lang.Object
  extended by com.web_visage.ichatserv.fwk.UpdatableStringFileList
All Implemented Interfaces:
FileChangeListener

public class UpdatableStringFileList
extends java.lang.Object
implements FileChangeListener

List populated from file containing strings separated with line breaks. This list can be updated dynamically.

Author:
K.Baturytski

Constructor Summary
UpdatableStringFileList(java.lang.String fileName)
          Constructor.
 
Method Summary
 boolean exists(java.lang.String ip)
          Checks whether given ip is banned.
 void fileChanges(java.lang.String aFileName)
          Re-reads string list on file change.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdatableStringFileList

public UpdatableStringFileList(java.lang.String fileName)
Constructor.

Parameters:
fileName -
Method Detail

fileChanges

public void fileChanges(java.lang.String aFileName)
Re-reads string list on file change.

Specified by:
fileChanges in interface FileChangeListener
See Also:
FileChangeListener.fileChanges(java.lang.String)

exists

public boolean exists(java.lang.String ip)
Checks whether given ip is banned.

Parameters:
ip -
Returns: