org.jnetpcap.util
Class Units

java.lang.Object
  extended by org.jnetpcap.util.Units

public class Units
extends java.lang.Object

The Class Units.

Author:
HP_Administrator

Field Summary
static int GIGABYTE
          The Constant GIGABYTE.
static int GIGIBYTE
          The Constant GIGIBYTE.
static int KIBIBYTE
          The Constant KIBIBYTE.
static int KILOBYTE
          The Constant KILOBYTE.
static int MEBIBYTE
          The Constant MEBIBYTE.
static int MEGABYTE
          The Constant MEGABYTE.
static long TEBIBYTE
          The Constant TEBIBYTE.
static long TERABYTE
          The Constant TERABYTE.
 
Constructor Summary
Units()
           
 
Method Summary
static java.lang.String f(long l)
          F.
static java.lang.String f(long l, int percision)
          F.
static java.lang.String f(long l, int percision, java.lang.String post)
          F.
static java.lang.String fb(long l)
          Fb.
static java.lang.String fb(long l, int percision)
          Fb.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEBIBYTE

public static final long TEBIBYTE
The Constant TEBIBYTE.

See Also:
Constant Field Values

GIGIBYTE

public static final int GIGIBYTE
The Constant GIGIBYTE.

See Also:
Constant Field Values

MEBIBYTE

public static final int MEBIBYTE
The Constant MEBIBYTE.

See Also:
Constant Field Values

KIBIBYTE

public static final int KIBIBYTE
The Constant KIBIBYTE.

See Also:
Constant Field Values

TERABYTE

public static final long TERABYTE
The Constant TERABYTE.

See Also:
Constant Field Values

GIGABYTE

public static final int GIGABYTE
The Constant GIGABYTE.

See Also:
Constant Field Values

MEGABYTE

public static final int MEGABYTE
The Constant MEGABYTE.

See Also:
Constant Field Values

KILOBYTE

public static final int KILOBYTE
The Constant KILOBYTE.

See Also:
Constant Field Values
Constructor Detail

Units

public Units()
Method Detail

f

public static java.lang.String f(long l)
F.

Parameters:
l - the l
Returns:
the string

f

public static java.lang.String f(long l,
                                 int percision)
F.

Parameters:
l - the l
percision - the percision
Returns:
the string

f

public static java.lang.String f(long l,
                                 int percision,
                                 java.lang.String post)
F.

Parameters:
l - the l
percision - the percision
post - the post
Returns:
the string

fb

public static java.lang.String fb(long l)
Fb.

Parameters:
l - the l
Returns:
the string

fb

public static java.lang.String fb(long l,
                                  int percision)
Fb.

Parameters:
l - the l
percision - the percision
Returns:
the string