de.mid.innovator.net
Class InoTelegram

java.lang.Object
  extended by de.mid.innovator.net.InoTelegram
Direct Known Subclasses:
LicSrvGetUserAddressRequestTelegram, LicSrvUserCheckAuthenticationRequestTelegram, LicSrvUserChkRepAdminReplyTelegram, LicSrvUserChkRepAdminRequestTelegram, LicSrvUserCreateLoginRequestTelegram, LicSrvUserGetLoginListRequestTelegram, LicSrvUserGetLoginRequestTelegram, LicSrvUserGetRolesReplyTelegram, LicSrvUserGetRolesRequestTelegram, LicSrvUserGetUserListRequestTelegram, LicSrvUserGetUserRequestTelegram

public class InoTelegram
extends Object

This class is the topmost telegram type for all network communication between Innovator clients and servers. It uses a DynamicByteBuffer to read data from or write data to the raw PDU data.

Author:
borschet

Field Summary
protected  DynamicByteBuffer buffer
           
 
Constructor Summary
protected InoTelegram()
           
protected InoTelegram(byte[] b)
           
protected InoTelegram(ByteBuffer b)
           
protected InoTelegram(int size)
           
 
Method Summary
 int capacity()
           
 Buffer clear()
           
 boolean equals(Object obj)
           
 Buffer flip()
           
 InoTelegram get(byte[] dst)
           
 byte getByte()
           
 char getChar()
           
 char getChar(int index)
           
 double getDouble()
           
 double getDouble(int index)
           
 float getFloat()
           
 float getFloat(int index)
           
 int getInt()
           
 int getInt(int index)
           
 long getLong()
           
 long getLong(int index)
           
 short getShort()
           
 short getShort(int index)
           
 int getSize()
           
 String getString()
           
 int hashCode()
           
 int limit()
           
 InoTelegram limit(int newLimit)
           
 int position()
           
 InoTelegram position(int newPosition)
           
 InoTelegram put(InoTelegram src)
           
 InoTelegram putByte(byte value)
           
 InoTelegram putByte(byte[] value)
           
 InoTelegram putChar(char value)
           
 InoTelegram putDouble(double value)
           
 InoTelegram putFloat(float value)
           
 InoTelegram putInt(int value)
           
 InoTelegram putInt(int value, int index)
           
 InoTelegram putShort(short value)
           
 InoTelegram putString(String value)
           
 int remaining()
           
 Buffer reset()
           
 Buffer rewind()
           
 byte[] toByteArray()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

buffer

protected DynamicByteBuffer buffer
Constructor Detail

InoTelegram

protected InoTelegram()

InoTelegram

protected InoTelegram(byte[] b)

InoTelegram

protected InoTelegram(ByteBuffer b)

InoTelegram

protected InoTelegram(int size)
Method Detail

capacity

public int capacity()

clear

public Buffer clear()

equals

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

flip

public Buffer flip()

get

public InoTelegram get(byte[] dst)

getByte

public byte getByte()

getChar

public char getChar()

getChar

public char getChar(int index)

getDouble

public double getDouble()

getDouble

public double getDouble(int index)

getFloat

public float getFloat()

getFloat

public float getFloat(int index)

getInt

public int getInt()

getInt

public int getInt(int index)

getLong

public long getLong()

getLong

public long getLong(int index)

getShort

public short getShort()

getShort

public short getShort(int index)

getSize

public int getSize()

getString

public String getString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

limit

public int limit()

limit

public InoTelegram limit(int newLimit)

position

public int position()

position

public InoTelegram position(int newPosition)

put

public InoTelegram put(InoTelegram src)

putByte

public InoTelegram putByte(byte value)

putByte

public InoTelegram putByte(byte[] value)

putChar

public InoTelegram putChar(char value)

putDouble

public InoTelegram putDouble(double value)

putFloat

public InoTelegram putFloat(float value)

putInt

public InoTelegram putInt(int value)

putInt

public InoTelegram putInt(int value,
                          int index)

putShort

public InoTelegram putShort(short value)

putString

public InoTelegram putString(String value)

remaining

public int remaining()

reset

public Buffer reset()

rewind

public Buffer rewind()

toByteArray

public byte[] toByteArray()

toString

public String toString()
Overrides:
toString in class Object