erland.util
Class XMLStorage

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

public class XMLStorage
extends Object
implements StorageInterface

A storage object that stores its data as XML in memory

Author:
Erland Isaksson

Constructor Summary
XMLStorage(XMLNode node)
          Creates a new object based on the data in an XMLNode object
 
Method Summary
 XMLNode getXMLNode()
          Get the storage data as an XMLNode object
 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

XMLStorage

public XMLStorage(XMLNode node)
Creates a new object based on the data in an XMLNode object

Parameters:
node - The XMLNode object containing the data
Method Detail

getXMLNode

public XMLNode getXMLNode()
Get the storage data as an XMLNode object

Returns:
The XMLNode representing the stored data

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.