net.sf.jqql.debug
Interface IDebugObject
- All Known Implementing Classes:
- AbstractDebugObject, FragmentDO, PacketDO
public interface IDebugObject
Debug object, a segment of data
调试对象,一段数æ®
- Author:
- luma
getBytes
byte[] getBytes()
- Returns:
- data's byte array form.
æ•°æ®çš„å—节数组形å¼
getHexString
String getHexString()
- Returns:
- data's hexadecimal string form.
æ•°æ®çš„16进制å—符串形å¼
getName
String getName()
- Returns:
- data's descriptive name.
æ•°æ®çš„æè¿°æ€§åç§°
setName
void setName(String name)
- set the name.
设置åç§°
- Parameters:
name
- name
åç§°
isIncoming
boolean isIncoming()
- Returns:
- Return true to indicate data received, false to data sent out.
trueè¡¨ç¤ºæ•°æ®æ˜¯æ”¶åˆ°çš„æ•°æ®ï¼Œfalse表示是å‘出的数æ®
getLength
int getLength()
- Returns:
- data byte length
æ•°æ®å—节长度
getBodyBytes
byte[] getBodyBytes()
- Returns:
- byte array of the packet body.
包体å—节数组
getBodyHexString
String getBodyHexString()
- Returns:
- hexadecimal string form of the packet body
包体的åå…进制å—符串形å¼