public class FormatConverter
extends java.lang.Object
FormatConverter is responsible for different format conversions.| Modifier and Type | Field and Description |
|---|---|
private static java.text.DateFormat |
timeFormat
Format used for the date.
|
| Constructor and Description |
|---|
FormatConverter() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
dateFormat(long msec)
Converts the date from the Time Epoch format to the String format.
|
static java.lang.String |
decimalFormat(byte[] binaryData)
Gets the IP address in the String format.
|
private static final java.text.DateFormat timeFormat
public static java.lang.String decimalFormat(byte[] binaryData)
binaryData - IP address in the binary formatpublic static java.lang.String dateFormat(long msec)
msec - the date measured in miliseconds from 1 January 1970