se.sics.jipv6.util
Class Utils

java.lang.Object
  extended by se.sics.jipv6.util.Utils

public class Utils
extends Object


Constructor Summary
Utils()
           
 
Method Summary
static String binary16(int data)
           
static String binary8(int data)
           
static int decodeInt(String value)
           
static long decodeLong(String value)
           
static boolean equals(byte[] arr1, byte[] arr2)
           
static void fill(byte[] array, int pos, int len, byte value)
           
static String hex16(int data)
           
static String hex8(int data)
           
static byte[] hexconv(String line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

binary8

public static String binary8(int data)

binary16

public static String binary16(int data)

hex8

public static String hex8(int data)

hex16

public static String hex16(int data)

fill

public static void fill(byte[] array,
                        int pos,
                        int len,
                        byte value)

decodeInt

public static int decodeInt(String value)
                     throws NumberFormatException
Throws:
NumberFormatException

decodeLong

public static long decodeLong(String value)
                       throws NumberFormatException
Throws:
NumberFormatException

hexconv

public static byte[] hexconv(String line)

equals

public static boolean equals(byte[] arr1,
                             byte[] arr2)