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.ObjectThis class is the topmost telegram type for all network communication between Innovator clients and servers. It uses aDynamicByteBufferto read data from or write data to the raw PDU data.- Author:
- borschet
-
-
Field Summary
Fields Modifier and Type Field Description protected DynamicByteBufferbuffer
-
Constructor Summary
Constructors Modifier Constructor Description protectedInoTelegram()protectedInoTelegram(byte[] b)protectedInoTelegram(int size)protectedInoTelegram(java.nio.ByteBuffer b)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcapacity()java.nio.Bufferclear()booleanequals(java.lang.Object obj)java.nio.Bufferflip()InoTelegramget(byte[] dst)bytegetByte()chargetChar()chargetChar(int index)doublegetDouble()doublegetDouble(int index)floatgetFloat()floatgetFloat(int index)intgetInt()intgetInt(int index)longgetLong()longgetLong(int index)shortgetShort()shortgetShort(int index)intgetSize()java.lang.StringgetString()inthashCode()intlimit()InoTelegramlimit(int newLimit)intposition()InoTelegramposition(int newPosition)InoTelegramput(InoTelegram src)InoTelegramputByte(byte value)InoTelegramputByte(byte[] value)InoTelegramputChar(char value)InoTelegramputDouble(double value)InoTelegramputFloat(float value)InoTelegramputInt(int value)InoTelegramputInt(int value, int index)InoTelegramputShort(short value)InoTelegramputString(java.lang.String value)intremaining()java.nio.Bufferreset()java.nio.Bufferrewind()byte[]toByteArray()java.lang.StringtoString()
-
-
-
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:
toStringin 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-