![]() |
All Packages This Package Class Hierarchy Class Search Index Class grendel.storage.ByteStringjava.lang.Object | +----grendel.storage.ByteString Represents a set of bytes. This is a spiritual cousin of String, but without the misfeature that characters are two bytes each, and there are 16 bytes of extranious object header. Since we store message headers internally in their on-the-wire form, and that is 7-bit ASCII (and occasionally 8-bit if people are being nonstandard) this is a much more tolerable representation. This class doesn't provide all of the utilities that String does, but that's pretty much just because I didn't need them (yet?) this is used by ByteStringTable to uniqueify the strings, to further reduce memory usage.
See Also: ByteStringTable, MessageID
class ByteString
extends java.lang.Object
{
// Fields 1
protected byte[] bytes;
// Constructors 2
ByteString(byte[]);
ByteString(ByteBuf);
// Methods 6
public boolean equals(Object);
protected int hashBytes(byte[], int, int);
public int hashCode();
public ByteBuf toByteBuf();
public byte[] toBytes();
public String toString();
}
Fields bytesprotected byte[] bytes
Constructors ByteStringByteString(byte[] bytes) ByteStringByteString(ByteBuf buf) Methods toStringpublic String toString() toByteBufpublic ByteBuf toByteBuf() toBytespublic byte[] toBytes() hashBytes
protected int hashBytes(byte[] b,
int start,
int len)
hashCodepublic int hashCode() equalspublic boolean equals(Object x) All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4 |
|
|
Copyright © 1998-1999 The Mozilla Organization.
Last modified December 25, 1998. |
|