com.ibm.di.eventhandler.ldap
Class BER
java.lang.Object
com.ibm.di.eventhandler.ldap.BER
public class BER
- extends Object
Constructor Summary |
BER()
|
Method Summary |
static ByteBuffer |
appendBuf(ByteBuffer buf,
byte tag,
byte[] value)
|
static void |
dump(ByteBuffer buf,
Log log)
|
static boolean |
getBoolean(ByteBuffer buffer)
|
static byte[] |
getBytes(ByteBuffer buffer)
|
static byte[] |
getBytes(ByteBuffer buffer,
boolean verify)
|
static String |
getDN(ByteBuffer buffer)
|
static int |
getEnum(ByteBuffer buffer)
|
static String |
getFilterString(ByteBuffer buffer)
|
static String |
getFilterString(ByteBuffer buffer,
String charset)
|
static int |
getInteger(ByteBuffer buffer)
|
static int |
getSeqLen(ByteBuffer buffer)
|
static String |
getString(ByteBuffer buffer)
|
static String |
getString(ByteBuffer buffer,
boolean verify)
|
static String |
getString(ByteBuffer buffer,
int len)
|
static String |
getString(ByteBuffer buffer,
int len,
String charset)
|
static String |
getString(ByteBuffer buffer,
String charset)
|
static String |
hex(int ch,
int len)
|
static void |
putBoolean(ByteBuffer buffer,
boolean value)
|
static ByteBuffer |
putBytes(ByteBuffer buffer,
byte[] value)
|
static void |
putEnum(ByteBuffer buffer,
int value)
|
static ByteBuffer |
putInteger(ByteBuffer buffer,
int value)
|
static byte[] |
putRawInt(int value)
|
static void |
putSeqLen(ByteBuffer buffer,
int value)
|
static ByteBuffer |
putString(ByteBuffer buffer,
String str)
|
static ByteBuffer |
putString(ByteBuffer buffer,
String value,
String charsetName)
|
static ByteBuffer |
realloc(ByteBuffer buf,
int size)
|
static void |
verify(byte a,
byte b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SEQUENCE
public static final byte SEQUENCE
- See Also:
- Constant Field Values
BOOLEAN
public static final byte BOOLEAN
- See Also:
- Constant Field Values
INTEGER
public static final byte INTEGER
- See Also:
- Constant Field Values
OCTET_STRING
public static final byte OCTET_STRING
- See Also:
- Constant Field Values
ENUMERATED
public static final byte ENUMERATED
- See Also:
- Constant Field Values
SET_OF
public static final byte SET_OF
- See Also:
- Constant Field Values
DN
public static final byte DN
- See Also:
- Constant Field Values
BER
public BER()
getBoolean
public static boolean getBoolean(ByteBuffer buffer)
throws Exception
- Throws:
Exception
getFilterString
public static String getFilterString(ByteBuffer buffer)
throws Exception
- Throws:
Exception
getFilterString
public static String getFilterString(ByteBuffer buffer,
String charset)
throws Exception
- Throws:
Exception
getDN
public static String getDN(ByteBuffer buffer)
throws Exception
- Throws:
Exception
getString
public static String getString(ByteBuffer buffer,
String charset)
throws Exception
- Throws:
Exception
getString
public static String getString(ByteBuffer buffer)
throws Exception
- Throws:
Exception
getString
public static String getString(ByteBuffer buffer,
boolean verify)
throws Exception
- Throws:
Exception
getString
public static String getString(ByteBuffer buffer,
int len)
throws Exception
- Throws:
Exception
getString
public static String getString(ByteBuffer buffer,
int len,
String charset)
throws Exception
- Throws:
Exception
getInteger
public static int getInteger(ByteBuffer buffer)
throws Exception
- Throws:
Exception
getEnum
public static int getEnum(ByteBuffer buffer)
throws Exception
- Throws:
Exception
getBytes
public static byte[] getBytes(ByteBuffer buffer)
throws Exception
- Throws:
Exception
getBytes
public static byte[] getBytes(ByteBuffer buffer,
boolean verify)
throws Exception
- Throws:
Exception
putBoolean
public static void putBoolean(ByteBuffer buffer,
boolean value)
throws Exception
- Throws:
Exception
putEnum
public static void putEnum(ByteBuffer buffer,
int value)
putBytes
public static ByteBuffer putBytes(ByteBuffer buffer,
byte[] value)
putString
public static ByteBuffer putString(ByteBuffer buffer,
String str)
putString
public static ByteBuffer putString(ByteBuffer buffer,
String value,
String charsetName)
throws Exception
- Throws:
Exception
putInteger
public static ByteBuffer putInteger(ByteBuffer buffer,
int value)
appendBuf
public static ByteBuffer appendBuf(ByteBuffer buf,
byte tag,
byte[] value)
realloc
public static ByteBuffer realloc(ByteBuffer buf,
int size)
putRawInt
public static byte[] putRawInt(int value)
putSeqLen
public static void putSeqLen(ByteBuffer buffer,
int value)
verify
public static void verify(byte a,
byte b)
throws Exception
- Throws:
Exception
dump
public static void dump(ByteBuffer buf,
Log log)
hex
public static String hex(int ch,
int len)
getSeqLen
public static int getSeqLen(ByteBuffer buffer)