public class Rmif.Packet
extends java.lang.Object
| Constructor and Description |
|---|
Packet(byte[] buf,
int off,
int len)
Creates a new Packet object with the time set to zero.
|
Packet(byte[] buf,
int off,
int len,
boolean copy)
Creates a new Packet object with the time set to zero.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getAdj()
RMIF Packet Field: adj (size of adjunct header)
|
java.lang.String |
getData()
Gets the packet data as a String.
|
byte |
getFlag()
RMIF Packet Field: info
|
byte |
getFunc()
RMIF Packet Field: func (see
getFunction()). |
java.lang.String |
getFunction()
The name of the RMIF function (see
getFunc()). |
byte |
getInfo()
RMIF Packet Field: info
|
java.lang.String |
getProtocol()
The name of the protocol used (see
getSeq()). |
byte |
getRep()
RMIF Packet Field: rep (data representation: IEEE, EEEI, etc).
|
byte |
getRpt()
RMIF Packet Field: ptr (not used, always 0)
|
byte |
getSeq()
RMIF Packet Field: seq (>=0: RDP sequence number, <0 Protocol ID).
|
byte |
getTry()
RMIF Packet Field: try (RDP packet try number, see
getProtocol()) |
java.lang.String |
toString()
Gets a description of the RMIF packet useful for debugging.
|
java.lang.String |
toStringShort()
Short form of toString that only prints out 12 characters in data and
time using just HMS.
|
public Packet(byte[] buf,
int off,
int len)
buf - The packet buffer.off - The offset into the buffer for the start of the packet.len - The total length of the RMIF packet in bytes (RMIF header + Data).public Packet(byte[] buf,
int off,
int len,
boolean copy)
buf - The packet buffer.off - The offset into the buffer for the start of the packet.len - The total length of the RMIF packet in bytes (RMIF header + Data).copy - Should a copy of the buffer be made?
deprecate this constructor?public byte getFunc()
getFunction()).public byte getFlag()
public byte getInfo()
public byte getRep()
public byte getSeq()
public byte getTry()
getProtocol())public byte getRpt()
public byte getAdj()
public java.lang.String getFunction()
getFunc()).public java.lang.String getProtocol()
getSeq()).public java.lang.String getData()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringShort()