swpchat.client
Class ClientConstantPool.ImageDirectoryDetector

java.lang.Object
  |
  +--swpchat.client.ClientConstantPool.ImageDirectoryDetector
Enclosing class:
ClientConstantPool

public static class ClientConstantPool.ImageDirectoryDetector
extends java.lang.Object

Class is used to provide a way for the interface ClientConstantPool to dermine the location of the image Directory. You must only set the SystemProperty "spChatClient.imageDirectory" to an correct value, and there you are. If you forget to set this property at startup, then we try to use "./gifs" as a default location. If this loaction also don`t fit, then you have to go along without images.


Field Summary
(package private) static java.lang.String PKImageDirectory
           
(package private) static java.lang.String STR_PATH_SEPARATOR
           
 
Constructor Summary
private ClientConstantPool.ImageDirectoryDetector()
          Private constructor, to prevend initialisation of an instance of this class.
 
Method Summary
(package private) static java.lang.String getImageDirectoryPath()
          Returns the ImageDirectoryPath that should be used to determine the location of the images.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

STR_PATH_SEPARATOR

static final java.lang.String STR_PATH_SEPARATOR

PKImageDirectory

static final java.lang.String PKImageDirectory
Constructor Detail

ClientConstantPool.ImageDirectoryDetector

private ClientConstantPool.ImageDirectoryDetector()
Private constructor, to prevend initialisation of an instance of this class.
Method Detail

getImageDirectoryPath

static java.lang.String getImageDirectoryPath()
Returns the ImageDirectoryPath that should be used to determine the location of the images.
Returns:
the entry of the SystemProperty "spChatClient.imageDirectory" or (if the property is not set) "./gifs".