com.ibm.btt.format
Class Message
java.lang.Object
com.ibm.btt.format.Message
public class Message
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BUFFER_SIZE
public static final int BUFFER_SIZE
- See Also:
- Constant Field Values
Message
public Message()
Message
public Message(byte[] bytes)
toBytes
public byte[] toBytes()
append
public void append(byte b)
append
public Message append(byte[] values)
append
public Message append(Message value)
subMessage
public Message subMessage(int beginIndex,
int endIndex)
- Returns a new string that is a substring of this string. The substring
begins at the specified
beginIndex
and extends to the
character at index endIndex - 1
. Thus the length of the
substring is endIndex-beginIndex
.
Examples:
"hamburger".substring(4, 8) returns "urge"
"smiles".substring(1, 5) returns "mile"
- Parameters:
beginIndex
- the beginning index, inclusive.endIndex
- the ending index, exclusive.
- Returns:
- the specified substring.
- Throws:
java.lang.IndexOutOfBoundsException
- if the beginIndex
is negative, or
endIndex
is larger than the length of this
String
object, or beginIndex
is larger than endIndex
.
subMessage
public Message subMessage(int beginIndex)
indexOf
public int indexOf(byte value)
indexOf
public int indexOf(byte[] value)
lastIndexOf
public int lastIndexOf(byte value)
lastIndexOf
public int lastIndexOf(byte[] value)
length
public int length()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
(c) Copyright IBM Corporation 1998, 2008