All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.imaginary.mud.LPCData

java.lang.Object
   |
   +----com.imaginary.mud.LPCData

public class LPCData
extends Object
The LPCData class represents the Java value of an LPC string that represents some LPC data type. You construct it using the string representing the LPC constant data.
Last modified $Date: 1998/10/27 20:54:24 $


Constructor Index

 o LPCData(String)
Constructs a new LPCData object from a string containing the representation of an LPC data type.
 o LPCData(StringBuffer)
Constructs a new LPCData object from a StringBuffer containing the representation of an LPC data type.

Method Index

 o getFloat()
 o getHashtable()
 o getInt()
 o getInteger()
 o getObject()
 o getString()
 o getVector()

Constructors

 o LPCData
 public LPCData(String str) throws LPCDataFormatException
Constructs a new LPCData object from a string containing the representation of an LPC data type. The typical use might be:
 String str = "([\"house\":1,])";
 LPCData d = new LPCData(str);
 Hashtable h = d.getHashtable();
 

Parameters:
str - the string representing an LPC constant
Throws: LPCDataFormatException
a bad LPC string was passed
 o LPCData
 public LPCData(StringBuffer str) throws LPCDataFormatException
Constructs a new LPCData object from a StringBuffer containing the representation of an LPC data type.

Parameters:
str - the StringBuffer representing an LPC constant
Throws: LPCDataFormatException
a bad LPC string was passed

Methods

 o getFloat
 public float getFloat()
Returns:
a float value for the LPC float this object represents
 o getHashtable
 public Hashtable getHashtable()
Returns:
a Hashtable value for the LPC mapping this object represents
 o getInt
 public int getInt()
Returns:
an int value for the LPC int this object represents
 o getInteger
 public Integer getInteger()
Returns:
an Integer value for the LPC int this object represents
 o getObject
 public Object getObject()
Returns:
an Object
 o getString
 public String getString()
Returns:
a String value for the LPC string this object represents
 o getVector
 public Vector getVector()
Returns:
a Vector value for the LPC array this object represents

All Packages  Class Hierarchy  This Package  Previous  Next  Index