public class NtpTimeStamp extends Object
| Constructor and Description |
|---|
NtpTimeStamp()
Creates a new instance of NtpTimeStamp that represents the time "right now."
|
NtpTimeStamp(ByteBuffer data)
Creates a new instance of NtpTimeStamp from encoded data in a
ByteBuffer. |
NtpTimeStamp(Date date)
Creates a new instance of NtpTimeStamp that represents the given
Date. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
void |
writeTo(ByteBuffer buffer)
Writes this
NtpTimeStamp to the given ByteBuffer. |
public NtpTimeStamp()
public NtpTimeStamp(Date date)
Date.date - public NtpTimeStamp(ByteBuffer data)
ByteBuffer.data - public void writeTo(ByteBuffer buffer)
NtpTimeStamp to the given ByteBuffer.buffer - Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.