java.lang.Object
pbn.ber.BER
- public class BER
- extends java.lang.Object
|
Constructor Summary |
BER()
|
|
Method Summary |
static byte[] |
Bytes2BER(byte[] byteData)
|
static boolean |
compareEqual(byte[] leftValue,
byte[] rightValue)
|
static boolean |
compareGreaterEqualThan(byte[] leftValue,
byte[] rightValue)
|
static boolean |
compareGreaterThan(byte[] leftValue,
byte[] rightValue)
|
static boolean |
compareLesserEqualThan(byte[] leftValue,
byte[] rightValue)
|
static boolean |
compareLesserThan(byte[] leftValue,
byte[] rightValue)
|
static int |
getBerType(byte[] data)
|
static int |
getBerType(byte[] data,
int offset)
|
static byte[] |
getBytes(byte[] data,
int offset)
|
static int |
getInt(byte[] data,
int offset)
|
static byte[] |
getIpv4Address(byte[] data,
int offset)
|
static java.lang.String |
getString(byte[] data,
int offset)
|
static java.lang.String |
getStringValueOf(byte[] data)
|
static java.lang.String |
getStringValueOf(byte[] data,
int offset)
|
static java.util.Date |
getTime(byte[] data)
|
static java.util.Date |
getTime(byte[] data,
int offset)
|
static java.lang.String |
getTimeString(byte[] data,
int offset)
|
static boolean |
getTruthValue(byte[] data,
int offset)
|
static byte[] |
Int2BER(int value)
|
static byte[] |
Ipv4Address2BER(byte[] address)
|
private static int |
nextDefaultOffset(byte[] data,
int initialOffset)
|
static int |
nextOffset(byte[] data,
int initialOffset)
|
private static int |
nextStringOffset(byte[] data,
int initialOffset)
|
static byte[] |
operateAdd(byte[] leftValue,
byte[] rightValue)
|
static byte[] |
operateSubstract(byte[] leftValue,
byte[] rightValue)
|
static byte[] |
String2BER(java.lang.String value)
|
static byte[] |
Time2BER(java.util.Date timeValue)
|
static byte[] |
TimeString2BER(java.lang.String value)
|
static byte[] |
TruthValue2BER(boolean value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BER
public BER()
Int2BER
public static byte[] Int2BER(int value)
Ipv4Address2BER
public static byte[] Ipv4Address2BER(byte[] address)
TruthValue2BER
public static byte[] TruthValue2BER(boolean value)
String2BER
public static byte[] String2BER(java.lang.String value)
Time2BER
public static byte[] Time2BER(java.util.Date timeValue)
TimeString2BER
public static byte[] TimeString2BER(java.lang.String value)
Bytes2BER
public static byte[] Bytes2BER(byte[] byteData)
getBytes
public static byte[] getBytes(byte[] data,
int offset)
throws BERException
getString
public static java.lang.String getString(byte[] data,
int offset)
throws BERException
getTime
public static java.util.Date getTime(byte[] data)
throws BERException
getTime
public static java.util.Date getTime(byte[] data,
int offset)
throws BERException
getTimeString
public static java.lang.String getTimeString(byte[] data,
int offset)
throws BERException
getInt
public static int getInt(byte[] data,
int offset)
throws BERException
nextOffset
public static int nextOffset(byte[] data,
int initialOffset)
throws BERException
nextDefaultOffset
private static int nextDefaultOffset(byte[] data,
int initialOffset)
throws BERException
nextStringOffset
private static int nextStringOffset(byte[] data,
int initialOffset)
throws BERException
getIpv4Address
public static byte[] getIpv4Address(byte[] data,
int offset)
throws BERException
getTruthValue
public static boolean getTruthValue(byte[] data,
int offset)
throws BERException
getStringValueOf
public static java.lang.String getStringValueOf(byte[] data)
throws BERException
getStringValueOf
public static java.lang.String getStringValueOf(byte[] data,
int offset)
throws BERException
getBerType
public static int getBerType(byte[] data)
getBerType
public static int getBerType(byte[] data,
int offset)
compareEqual
public static boolean compareEqual(byte[] leftValue,
byte[] rightValue)
throws BERException
compareGreaterThan
public static boolean compareGreaterThan(byte[] leftValue,
byte[] rightValue)
throws BERException
compareGreaterEqualThan
public static boolean compareGreaterEqualThan(byte[] leftValue,
byte[] rightValue)
throws BERException
compareLesserThan
public static boolean compareLesserThan(byte[] leftValue,
byte[] rightValue)
throws BERException
compareLesserEqualThan
public static boolean compareLesserEqualThan(byte[] leftValue,
byte[] rightValue)
throws BERException
operateAdd
public static byte[] operateAdd(byte[] leftValue,
byte[] rightValue)
throws BERException
operateSubstract
public static byte[] operateSubstract(byte[] leftValue,
byte[] rightValue)
throws BERException