ostore.util
Class QSString

java.lang.Object
  |
  +--ostore.util.QSString
All Implemented Interfaces:
Comparable, QuickSerializable

public class QSString
extends Object
implements QuickSerializable, Comparable

A dull mirror of the java.lang.String class which implements ostore.util.QuickSerializable. Most of the functionality from the String has not been ported; cast the QSString using toString() and call the String methods directly.

Version:
$Id: QSString.java,v 1.14 2002/07/29 18:48:54 geels Exp $
Author:
Dennis Geels

Constructor Summary
QSString()
           
QSString(InputBuffer buffer)
           
QSString(String s)
           
QSString(StringBuffer sb)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object other)
           
 int hashCode()
           
 int length()
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QSString

public QSString()

QSString

public QSString(String s)

QSString

public QSString(StringBuffer sb)

QSString

public QSString(InputBuffer buffer)
         throws QSException
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.

Specified by:
serialize in interface QuickSerializable
Parameters:
buffer - the output buffer to add the object to

length

public int length()

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

toString

public String toString()
Overrides:
toString in class Object