|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zmpp.vmutil.ZsciiString
public class ZsciiString
This class represents a string of Z characters. It also does some conversion in case a string is specified as a constructor argument.
Constructor Summary | |
---|---|
ZsciiString(MemoryReadAccess memaccess,
int startAddress)
Constructor. |
|
ZsciiString(short zchar)
Creates a ZsciiString from a single zchar. |
|
ZsciiString(String str)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
MemoryReadAccess |
getMemoryAccess()
Returns a memory access object. |
int |
getNumWords()
Returns the total number of Zwords occupied by this ZsciiString. |
int |
getStartAddress()
Returns the start address within the memory access buffer. |
static void |
setZsciiConverter(ZsciiConverter converter)
Sets the converter object used by the ZsciiString class. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ZsciiString(String str)
str
- a Java string objectpublic ZsciiString(MemoryReadAccess memaccess, int startAddress)
memaccess
- a memory access objectstartAddress
- the start address within the memory access objectpublic ZsciiString(short zchar)
zchar
- a ZSCII charMethod Detail |
---|
public static void setZsciiConverter(ZsciiConverter converter)
converter
- the converterpublic MemoryReadAccess getMemoryAccess()
public int getStartAddress()
public int getNumWords()
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |