<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <!--NewPage--> <html> <head> <!-- Generated by javadoc on Tue Oct 27 14:54:14 CST 1998 --> <title> Class com.imaginary.mud.LPCData </title> </head> <body> <a name="_top_"></a> <pre> <a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-com.imaginary.mud.html">This Package</a> <a href="Package-com.imaginary.mud.html">Previous</a> <a href="com.imaginary.mud.SavedLPCObject.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre> <hr> <h1> Class com.imaginary.mud.LPCData </h1> <pre> java.lang.Object | +----com.imaginary.mud.LPCData </pre> <hr> <dl> <dt> public class <b>LPCData</b> <dt> extends Object </dl> 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. <BR> Last modified $Date: 1998/10/27 20:54:24 $ <p> <hr> <a name="index"></a> <h2> <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index"> </h2> <dl> <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o "> <a href="#LPCData(java.lang.String)"><b>LPCData</b></a>(String) <dd> Constructs a new LPCData object from a string containing the representation of an LPC data type. <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o "> <a href="#LPCData(java.lang.StringBuffer)"><b>LPCData</b></a>(StringBuffer) <dd> Constructs a new LPCData object from a StringBuffer containing the representation of an LPC data type. </dl> <h2> <img src="images/method-index.gif" width=207 height=38 alt="Method Index"> </h2> <dl> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getFloat()"><b>getFloat</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getHashtable()"><b>getHashtable</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getInt()"><b>getInt</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getInteger()"><b>getInteger</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getObject()"><b>getObject</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getString()"><b>getString</b></a>() <dd> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getVector()"><b>getVector</b></a>() <dd> </dl> <a name="constructors"></a> <h2> <img src="images/constructors.gif" width=231 height=38 alt="Constructors"> </h2> <a name="LPCData"></a> <a name="LPCData(java.lang.String)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a> <b>LPCData</b> <pre> public LPCData(String str) throws <a href="com.imaginary.mud.LPCDataFormatException.html#_top_">LPCDataFormatException</a> </pre> <dl> <dd> Constructs a new LPCData object from a string containing the representation of an LPC data type. The typical use might be: <PRE> String str = "([\"house\":1,])"; LPCData d = new LPCData(str); Hashtable h = d.getHashtable(); </PRE> <p> <dd><dl> <dt> <b>Parameters:</b> <dd> str - the string representing an LPC constant <dt> <b>Throws:</b> LPCDataFormatException <dd> a bad LPC string was passed </dl></dd> </dl> <a name="LPCData(java.lang.StringBuffer)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a> <b>LPCData</b> <pre> public LPCData(StringBuffer str) throws <a href="com.imaginary.mud.LPCDataFormatException.html#_top_">LPCDataFormatException</a> </pre> <dl> <dd> Constructs a new LPCData object from a StringBuffer containing the representation of an LPC data type. <p> <dd><dl> <dt> <b>Parameters:</b> <dd> str - the StringBuffer representing an LPC constant <dt> <b>Throws:</b> LPCDataFormatException <dd> a bad LPC string was passed </dl></dd> </dl> <a name="methods"></a> <h2> <img src="images/methods.gif" width=151 height=38 alt="Methods"> </h2> <a name="getFloat()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a> <a name="getFloat"><b>getFloat</b></a> <pre> public float getFloat() </pre> <dl> <dd><dl> <dt> <b>Returns:</b> <dd> a float value for the LPC float this object represents </dl></dd> </dl> <a name="getHashtable()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a> <a name="getHashtable"><b>getHashtable</b></a> <pre> public Hashtable getHashtable() </pre> <dl> <dd><dl> <dt> <b>Returns:</b> <dd> a Hashtable value for the LPC mapping this object represents </dl></dd> </dl> <a name="getInt()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a> <a name="getInt"><b>getInt</b></a> <pre> public int getInt() </pre> <dl> <dd><dl> <dt> <b>Returns:</b> <dd> an int value for the LPC int this object represents </dl></dd> </dl> <a name="getInteger()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a> <a name="getInteger"><b>getInteger</b></a> <pre> public Integer getInteger() </pre> <dl> <dd><dl> <dt> <b>Returns:</b> <dd> an Integer value for the LPC int this object represents </dl></dd> </dl> <a name="getObject()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a> <a name="getObject"><b>getObject</b></a> <pre> public Object getObject() </pre> <dl> <dd><dl> <dt> <b>Returns:</b> <dd> an Object </dl></dd> </dl> <a name="getString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a> <a name="getString"><b>getString</b></a> <pre> public String getString() </pre> <dl> <dd><dl> <dt> <b>Returns:</b> <dd> a String value for the LPC string this object represents </dl></dd> </dl> <a name="getVector()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a> <a name="getVector"><b>getVector</b></a> <pre> public Vector getVector() </pre> <dl> <dd><dl> <dt> <b>Returns:</b> <dd> a Vector value for the LPC array this object represents </dl></dd> </dl> <hr> <pre> <a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-com.imaginary.mud.html">This Package</a> <a href="Package-com.imaginary.mud.html">Previous</a> <a href="com.imaginary.mud.SavedLPCObject.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre> </body> </html>