de.mid.innovator.net
Class InoTelegram
java.lang.Object
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
buffer
protected DynamicByteBuffer buffer
InoTelegram
protected InoTelegram()
InoTelegram
protected InoTelegram(byte[] b)
InoTelegram
protected InoTelegram(ByteBuffer b)
InoTelegram
protected InoTelegram(int size)
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