org.apache.yoko.rmi.util
Class ByteString

java.lang.Object
  extended by org.apache.yoko.rmi.util.ByteString
All Implemented Interfaces:
Cloneable, Comparable

public class ByteString
extends Object
implements Comparable, Cloneable


Constructor Summary
ByteString(byte[] data)
           
ByteString(byte[] data, int pos, int len)
           
ByteString(String value)
           
 
Method Summary
 byte byteAt(int i)
           
 char charAt(int i)
           
 Object clone()
           
 int compareTo(Object o)
           
 void copyInto(byte[] data, int off)
           
 boolean endsWith(ByteString postfix)
           
 boolean endsWith(String postfix)
           
 boolean equals(ByteString bs)
           
 boolean equals(Object other)
           
 boolean equalsIgnoreCase(ByteString bs)
           
 boolean equalsIgnoreCase(Object other)
           
 boolean equalsIgnoreCase(String s)
           
 int hashCode()
           
 int indexOf(byte by, int index)
           
 int indexOf(char ch)
           
 int indexOf(char ch, int index)
           
static boolean isSpace(byte value)
           
 int lastIndexOf(byte by, int index)
           
 int lastIndexOf(char ch)
           
 int lastIndexOf(char ch, int index)
           
 int length()
           
 int lowerCaseHashCode()
           
 int parseInt(int start)
           
protected  void setData(byte[] data)
           
 ByteString[] split(char c)
           
 boolean startsWith(ByteString prefix)
           
 boolean startsWith(String prefix)
           
 boolean startsWithIgnoreCase(ByteString prefix)
           
 boolean startsWithIgnoreCase(String prefix)
           
 ByteString substring(int index)
           
 ByteString substring(int index, int endindex)
           
 String toString()
           
 ByteString toUpperCase()
           
 ByteString toUpperCase(boolean overwrite)
           
 ByteString trim()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteString

public ByteString(byte[] data,
                  int pos,
                  int len)

ByteString

public ByteString(byte[] data)

ByteString

public ByteString(String value)
Method Detail

charAt

public char charAt(int i)

byteAt

public byte byteAt(int i)

length

public int length()

clone

public Object clone()
Overrides:
clone in class Object

compareTo

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

substring

public ByteString substring(int index)

substring

public ByteString substring(int index,
                            int endindex)

indexOf

public int indexOf(char ch)

indexOf

public int indexOf(char ch,
                   int index)

indexOf

public int indexOf(byte by,
                   int index)

lastIndexOf

public int lastIndexOf(char ch)

lastIndexOf

public int lastIndexOf(char ch,
                       int index)

lastIndexOf

public int lastIndexOf(byte by,
                       int index)

startsWith

public boolean startsWith(ByteString prefix)

startsWithIgnoreCase

public boolean startsWithIgnoreCase(ByteString prefix)

startsWithIgnoreCase

public boolean startsWithIgnoreCase(String prefix)

endsWith

public boolean endsWith(ByteString postfix)

startsWith

public boolean startsWith(String prefix)

endsWith

public boolean endsWith(String postfix)

toUpperCase

public ByteString toUpperCase(boolean overwrite)

toUpperCase

public ByteString toUpperCase()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

lowerCaseHashCode

public int lowerCaseHashCode()

equals

public boolean equals(ByteString bs)

equals

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

equalsIgnoreCase

public boolean equalsIgnoreCase(Object other)

equalsIgnoreCase

public boolean equalsIgnoreCase(ByteString bs)

equalsIgnoreCase

public boolean equalsIgnoreCase(String s)

isSpace

public static boolean isSpace(byte value)

trim

public ByteString trim()

toString

public String toString()
Overrides:
toString in class Object

split

public ByteString[] split(char c)

copyInto

public void copyInto(byte[] data,
                     int off)

setData

protected void setData(byte[] data)

parseInt

public int parseInt(int start)


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.