Package de.mid.innovator.net
Class InoTelegram
- java.lang.Object
-
- de.mid.innovator.net.InoTelegram
-
- Direct Known Subclasses:
LicSrvGetUserAddressRequestTelegram
,LicSrvUserCheckAuthenticationRequestTelegram
,LicSrvUserChkEnvironRightReplyTelegram
,LicSrvUserChkEnvironRightRequestTelegram
,LicSrvUserChkMdlAdminReplyTelegram
,LicSrvUserChkMdlAdminRequestTelegram
,LicSrvUserChkRepAdminReplyTelegram
,LicSrvUserChkRepAdminRequestTelegram
,LicSrvUserChkVersAdminReplyTelegram
,LicSrvUserChkVersAdminRequestTelegram
,LicSrvUserChkVersMdlAdminRequestTelegram
,LicSrvUserCreateLoginRequestTelegram
,LicSrvUserGetLoginListRequestTelegram
,LicSrvUserGetLoginRequestTelegram
,LicSrvUserGetRolesReplyTelegram
,LicSrvUserGetRolesRequestTelegram
,LicSrvUserGetUserJWTRequestTelegram
,LicSrvUserGetUserListRequestTelegram
,LicSrvUserGetUserRequestTelegram
,LicSrvUserGetVersRolesRequestTelegram
public class InoTelegram extends java.lang.Object
This class is the topmost telegram type for all network communication between Innovator clients and servers. It uses aDynamicByteBuffer
to read data from or write data to the raw PDU data.- Author:
- borschet
-
-
Field Summary
Fields Modifier and Type Field Description protected DynamicByteBuffer
buffer
-
Constructor Summary
Constructors Modifier Constructor Description protected
InoTelegram()
protected
InoTelegram(byte[] b)
protected
InoTelegram(int size)
protected
InoTelegram(java.nio.ByteBuffer b)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
capacity()
java.nio.Buffer
clear()
boolean
equals(java.lang.Object obj)
java.nio.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()
java.lang.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(java.lang.String value)
int
remaining()
java.nio.Buffer
reset()
java.nio.Buffer
rewind()
byte[]
toByteArray()
java.lang.String
toString()
-
-
-
Field Detail
-
buffer
protected DynamicByteBuffer buffer
-
-
Method Detail
-
capacity
public int capacity()
-
clear
public java.nio.Buffer clear()
-
flip
public java.nio.Buffer flip()
-
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)
-
getByte
public byte getByte()
-
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)
-
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)
-
putByte
public InoTelegram putByte(byte value)
-
putByte
public InoTelegram putByte(byte[] value)
-
remaining
public int remaining()
-
reset
public java.nio.Buffer reset()
-
rewind
public java.nio.Buffer rewind()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getSize
public int getSize()
-
toByteArray
public byte[] toByteArray()
-
get
public InoTelegram get(byte[] dst)
-
putString
public InoTelegram putString(java.lang.String value)
-
getString
public java.lang.String getString()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-