erland.util
Class CookieStorage

java.lang.Object
  extended by erland.util.CookieStorage
All Implemented Interfaces:
StorageInterface

public class CookieStorage
extends Object
implements StorageInterface

An implementation of StorageInterface that uses a cookie to store inforamtion

Author:
Erland Isaksson

Constructor Summary
CookieStorage(Applet applet, String cookieName)
          Creates a new instance that stores information in the specified cookie using the specified applet object
 
Method Summary
 String load()
          Read data from the storage as a string
 void save(String str)
          Store the specified string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookieStorage

public CookieStorage(Applet applet,
                     String cookieName)
Creates a new instance that stores information in the specified cookie using the specified applet object

Parameters:
applet - The applet object to use when accessing the cookie
cookieName - The name of the cookie to store information in
Method Detail

save

public void save(String str)
Description copied from interface: StorageInterface
Store the specified string

Specified by:
save in interface StorageInterface
Parameters:
str - String to store

load

public String load()
Description copied from interface: StorageInterface
Read data from the storage as a string

Specified by:
load in interface StorageInterface
Returns:
Data in the storage


Copyright © 2003-2005 Erland Isaksson. All Rights Reserved.