Class marimba.text.ByteString
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.text.ByteString

java.lang.Object
   |
   +----marimba.text.ByteString

public class ByteString
extends Object
This class implements a byte string object, which is similar to a string. It's a way to efficiently create substrings (sub byte arrays) into existing arrays of bytes.
Version:
1.5, 12/15/96
Author:
Jonathan Payne

Variable Index

 o data
 o length
 o off

Constructor Index

 o ByteString()
 o ByteString(byte[], int, int)
 o ByteString(String)

Method Index

 o append(String)
 o equals(Object)
 o hashCode()
 o rindex(int)
 o set(byte[], int, int)
 o toString()

Variables

 o data
  public byte data[]
 o off
  public int off
 o length
  public int length

Constructors

 o ByteString
  public ByteString()
 o ByteString
  public ByteString(byte data[],
                    int off,
                    int length)
 o ByteString
  public ByteString(String s)

Methods

 o set
  public void set(byte data[],
                  int off,
                  int length)
 o hashCode
  public int hashCode()
Overrides:
hashCode in class Object
 o equals
  public boolean equals(Object other)
Overrides:
equals in class Object
 o rindex
  public int rindex(int c)
 o append
  public ByteString append(String s)
 o toString
  public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index