Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

pbn.common
Class BC  view BC download BC.java

java.lang.Object
  extended bypbn.common.BC

public class BC
extends java.lang.Object


Field Summary
private static java.text.DateFormat dateFormatter
           
 
Constructor Summary
BC()
           
 
Method Summary
static int byte2int(byte[] data, int offset, int length)
           
static short byte2short(byte byte1, byte byte2)
           
static java.lang.String byteToHex(byte b)
           
static java.lang.String formatTimeString(java.util.Date time)
           
private static java.text.DateFormat getFormatter()
           
static int getHours(java.util.Date moment)
           
static java.net.InetAddress getIpAddress(byte[] ipBytes)
           
static int getMinutes(java.util.Date moment)
           
static java.util.Date getNewTime(int hour, int min)
           
static byte[] getOidBytes(java.lang.String OID)
           
static java.lang.String getOidString(byte[] OID)
           
static java.util.Date getTime()
           
static void int2byte(int s, byte[] b, int pos)
           
static java.lang.String IPString(byte[] d)
           
static boolean isNewDay(java.util.Date moment)
           
static java.util.Date parseTimeString(java.lang.String stringTime)
           
static void short2byte(int s, byte[] b, int pos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dateFormatter

private static java.text.DateFormat dateFormatter
Constructor Detail

BC

public BC()
Method Detail

byte2short

public static short byte2short(byte byte1,
                               byte byte2)

byte2int

public static int byte2int(byte[] data,
                           int offset,
                           int length)

int2byte

public static void int2byte(int s,
                            byte[] b,
                            int pos)

short2byte

public static void short2byte(int s,
                              byte[] b,
                              int pos)

byteToHex

public static java.lang.String byteToHex(byte b)

IPString

public static java.lang.String IPString(byte[] d)

getOidString

public static java.lang.String getOidString(byte[] OID)
                                     throws pbn.copspr.COPSPRException

getOidBytes

public static byte[] getOidBytes(java.lang.String OID)
                          throws pbn.copspr.COPSPRException

getIpAddress

public static java.net.InetAddress getIpAddress(byte[] ipBytes)

formatTimeString

public static java.lang.String formatTimeString(java.util.Date time)

parseTimeString

public static java.util.Date parseTimeString(java.lang.String stringTime)
                                      throws java.text.ParseException

getFormatter

private static java.text.DateFormat getFormatter()

getTime

public static java.util.Date getTime()

getNewTime

public static java.util.Date getNewTime(int hour,
                                        int min)

getHours

public static int getHours(java.util.Date moment)

getMinutes

public static int getMinutes(java.util.Date moment)

isNewDay

public static boolean isNewDay(java.util.Date moment)