IBM Bank Transformation Toolkit Javadoc

com.ibm.btt.format
Class Message

java.lang.Object
  extended by com.ibm.btt.format.Message

public class Message
extends java.lang.Object


Field Summary
static int BUFFER_SIZE
           
 
Constructor Summary
Message()
           
Message(byte[] bytes)
           
 
Method Summary
 void append(byte b)
           
 Message append(byte[] values)
           
 Message append(Message value)
           
 int indexOf(byte value)
           
 int indexOf(byte[] value)
           
 int lastIndexOf(byte value)
           
 int lastIndexOf(byte[] value)
           
 int length()
           
 Message subMessage(int beginIndex)
           
 Message subMessage(int beginIndex, int endIndex)
          Returns a new string that is a substring of this string.
 byte[] toBytes()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BUFFER_SIZE

public static final int BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

Message

public Message()

Message

public Message(byte[] bytes)
Method Detail

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

IBM Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2008