Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

plugins.IcqEngine.protocol
Class ByteMessage  view ByteMessage download ByteMessage.java

java.lang.Object
  extended byplugins.IcqEngine.protocol.ByteMessage

public class ByteMessage
extends java.lang.Object


Field Summary
private  byte[] bytes
           
private  int length
           
(package private) static int MAX_BYTES
           
 
Constructor Summary
ByteMessage()
          Creates a new instance of ByteMessage
ByteMessage(byte[] bytes, int length)
           
 
Method Summary
 void concat(byte[] b, int len)
           
 void concat(int i, int len)
           
 void concat(java.lang.String str)
           
 void concatHex(java.lang.String hex)
           
 void concatIp(java.lang.String ip)
           
 byte[] getBytes()
           
 int length()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_BYTES

static final int MAX_BYTES
See Also:
Constant Field Values

bytes

private byte[] bytes

length

private int length
Constructor Detail

ByteMessage

public ByteMessage()
Creates a new instance of ByteMessage


ByteMessage

public ByteMessage(byte[] bytes,
                   int length)
Method Detail

getBytes

public byte[] getBytes()

concat

public void concat(byte[] b,
                   int len)

concat

public void concat(int i,
                   int len)

concatHex

public void concatHex(java.lang.String hex)

concat

public void concat(java.lang.String str)

concatIp

public void concatIp(java.lang.String ip)

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


length

public int length()