|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quamj.qps.util.ntp.NtpHeader
This class encapsulates the header of a NtpDatagram. See rfc2030 for more details.
Field Summary | |
static NtpHeader |
defaultHeader
The default header for a client datagram. |
static byte[] |
defaultHeaderData
The default header data for a client datagram. |
Constructor Summary | |
NtpHeader(byte[] data)
Construct a NtpHeader from a 16 byte array. |
Method Summary | |
byte[] |
getData()
Gets the 16 byte array constituting the header. |
int |
getLeapYearIndicator()
|
int |
getMode()
|
int |
getPollInterval()
|
double |
getPrecision()
Get precision in milliseconds. |
java.lang.Object |
getReferenceIdentifier()
Gets the reference identifier as an object. |
double |
getRootDelay()
Get root delay in milliseconds. |
double |
getRootDispersion()
Get root dispersion in milliseconds. |
int |
getStratum()
|
int |
getVersionNumber()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte[] defaultHeaderData
public static final NtpHeader defaultHeader
Constructor Detail |
public NtpHeader(byte[] data)
Method Detail |
public byte[] getData()
public int getLeapYearIndicator()
public int getVersionNumber()
public int getMode()
public int getStratum()
public int getPollInterval()
public double getPrecision()
public double getRootDelay()
public double getRootDispersion()
public java.lang.Object getReferenceIdentifier()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |