public final class com.sun.jndi.ldap.BerEncoder extends com.sun.jndi.ldap.Ber
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.jndi.ldap.BerEncoder
super_class: com.sun.jndi.ldap.Ber
{
private int curSeqIndex;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int[] seqOffset;
descriptor: [I
flags: (0x0002) ACC_PRIVATE
private static final int INITIAL_SEQUENCES;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 16
private static final int DEFAULT_BUFSIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1024
private static final int BUF_GROWTH_FACTOR;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
sipush 1024
invokespecial com.sun.jndi.ldap.BerEncoder.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/jndi/ldap/BerEncoder;
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial com.sun.jndi.ldap.Ber.<init>:()V
1: aload 0
iload 1
newarray 8
putfield com.sun.jndi.ldap.BerEncoder.buf:[B
2: aload 0
iload 1
putfield com.sun.jndi.ldap.BerEncoder.bufsize:I
3: aload 0
iconst_0
putfield com.sun.jndi.ldap.BerEncoder.offset:I
4: aload 0
bipush 16
newarray 10
putfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
5: aload 0
iconst_0
putfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/jndi/ldap/BerEncoder;
0 7 1 bufsize I
MethodParameters:
Name Flags
bufsize
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: goto 2
1: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
iconst_1
isub
dup_x1
putfield com.sun.jndi.ldap.BerEncoder.offset:I
iconst_0
bastore
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.BerEncoder.offset:I
ifgt 1
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
iconst_1
isub
dup_x1
putfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
iconst_0
iastore
5: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
ifgt 4
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/jndi/ldap/BerEncoder;
public int getDataLen();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.jndi.ldap.BerEncoder.offset:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/jndi/ldap/BerEncoder;
public byte[] getBuf();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "BER encode error: Unbalanced SEQUENCEs."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/jndi/ldap/BerEncoder;
public byte[] getTrimmedBuf();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual com.sun.jndi.ldap.BerEncoder.getDataLen:()I
istore 1
start local 1 1: iload 1
newarray 8
astore 2
start local 2 2: aload 0
invokevirtual com.sun.jndi.ldap.BerEncoder.getBuf:()[B
iconst_0
aload 2
iconst_0
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/jndi/ldap/BerEncoder;
1 4 1 len I
2 4 2 trimBuf [B
public void beginSeq(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
aload 0
getfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
arraylength
if_icmplt 8
1: aload 0
getfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
arraylength
iconst_2
imul
newarray 10
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 6
4: StackMap locals: int[] int
StackMap stack:
aload 2
iload 3
aload 0
getfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
iload 3
iaload
iastore
5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
aload 0
getfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
arraylength
if_icmplt 4
end local 3 7: aload 0
aload 2
putfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
end local 2 8: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual com.sun.jndi.ldap.BerEncoder.encodeByte:(I)V
9: aload 0
getfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
aload 0
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
aload 0
getfield com.sun.jndi.ldap.BerEncoder.offset:I
iastore
10: aload 0
iconst_3
invokevirtual com.sun.jndi.ldap.BerEncoder.ensureFreeBytes:(I)V
11: aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
iconst_3
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
12: aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
13: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/sun/jndi/ldap/BerEncoder;
0 14 1 tag I
2 8 2 seqOffsetTmp [I
3 7 3 i I
MethodParameters:
Name Flags
tag
public void endSeq();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
iconst_1
isub
putfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
1: aload 0
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
ifge 3
2: new java.lang.IllegalStateException
dup
ldc "BER encode error: Unbalanced SEQUENCEs."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
aload 0
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
iaload
iconst_3
iadd
istore 1
start local 1 4: aload 0
getfield com.sun.jndi.ldap.BerEncoder.offset:I
iload 1
isub
istore 2
start local 2 5: iload 2
bipush 127
if_icmpgt 9
6: aload 0
iload 1
iload 2
bipush -2
invokevirtual com.sun.jndi.ldap.BerEncoder.shiftSeqData:(III)V
7: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
getfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
aload 0
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
iaload
iload 2
i2b
bastore
8: goto 27
StackMap locals: int int
StackMap stack:
9: iload 2
sipush 255
if_icmpgt 14
10: aload 0
iload 1
iload 2
iconst_m1
invokevirtual com.sun.jndi.ldap.BerEncoder.shiftSeqData:(III)V
11: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
getfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
aload 0
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
iaload
bipush -127
bastore
12: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
getfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
aload 0
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
iaload
iconst_1
iadd
iload 2
i2b
bastore
13: goto 27
StackMap locals:
StackMap stack:
14: iload 2
ldc 65535
if_icmpgt 19
15: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
getfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
aload 0
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
iaload
bipush -126
bastore
16: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
getfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
aload 0
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
iaload
iconst_1
iadd
iload 2
bipush 8
ishr
i2b
bastore
17: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
getfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
aload 0
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
iaload
iconst_2
iadd
iload 2
i2b
bastore
18: goto 27
StackMap locals:
StackMap stack:
19: iload 2
ldc 16777215
if_icmpgt 26
20: aload 0
iload 1
iload 2
iconst_1
invokevirtual com.sun.jndi.ldap.BerEncoder.shiftSeqData:(III)V
21: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
getfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
aload 0
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
iaload
bipush -125
bastore
22: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
getfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
aload 0
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
iaload
iconst_1
iadd
iload 2
bipush 16
ishr
i2b
bastore
23: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
getfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
aload 0
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
iaload
iconst_2
iadd
iload 2
bipush 8
ishr
i2b
bastore
24: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
getfield com.sun.jndi.ldap.BerEncoder.seqOffset:[I
aload 0
getfield com.sun.jndi.ldap.BerEncoder.curSeqIndex:I
iaload
iconst_3
iadd
iload 2
i2b
bastore
25: goto 27
26: StackMap locals:
StackMap stack:
new com.sun.jndi.ldap.Ber$EncodeException
dup
ldc "SEQUENCE too long"
invokespecial com.sun.jndi.ldap.Ber$EncodeException.<init>:(Ljava/lang/String;)V
athrow
27: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lcom/sun/jndi/ldap/BerEncoder;
4 28 1 start I
5 28 2 len I
Exceptions:
throws com.sun.jndi.ldap.Ber$EncodeException
private void shiftSeqData(int, int, int);
descriptor: (III)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
ifle 2
1: aload 0
iload 3
invokevirtual com.sun.jndi.ldap.BerEncoder.ensureFreeBytes:(I)V
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
iload 1
aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
iload 1
iload 3
iadd
iload 2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
iload 3
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/jndi/ldap/BerEncoder;
0 5 1 start I
0 5 2 len I
0 5 3 shift I
MethodParameters:
Name Flags
start
len
shift
public void encodeByte(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
invokevirtual com.sun.jndi.ldap.BerEncoder.ensureFreeBytes:(I)V
1: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
dup_x1
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
iload 1
i2b
bastore
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/jndi/ldap/BerEncoder;
0 3 1 b I
MethodParameters:
Name Flags
b
public void encodeInt(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
iconst_2
invokevirtual com.sun.jndi.ldap.BerEncoder.encodeInt:(II)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/jndi/ldap/BerEncoder;
0 2 1 i I
MethodParameters:
Name Flags
i
public void encodeInt(int, int);
descriptor: (II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: ldc -8388608
istore 3
start local 3 1: iconst_4
istore 4
start local 4 2: goto 5
3: StackMap locals: int int
StackMap stack:
iinc 4 -1
4: iload 1
bipush 8
ishl
istore 1
5: StackMap locals:
StackMap stack:
iload 1
iload 3
iand
ifeq 6
iload 1
iload 3
iand
iload 3
if_icmpne 7
StackMap locals:
StackMap stack:
6: iload 4
iconst_1
if_icmpgt 3
7: StackMap locals:
StackMap stack:
aload 0
iload 1
iload 2
iload 4
invokevirtual com.sun.jndi.ldap.BerEncoder.encodeInt:(III)V
8: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/jndi/ldap/BerEncoder;
0 9 1 i I
0 9 2 tag I
1 9 3 mask I
2 9 4 intsize I
MethodParameters:
Name Flags
i
tag
private void encodeInt(int, int, int);
descriptor: (III)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
iconst_4
if_icmple 2
1: new java.lang.IllegalArgumentException
dup
ldc "BER encode error: INTEGER too long."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iconst_2
iload 3
iadd
invokevirtual com.sun.jndi.ldap.BerEncoder.ensureFreeBytes:(I)V
3: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
dup_x1
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
iload 2
i2b
bastore
4: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
dup_x1
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
iload 3
i2b
bastore
5: ldc -16777216
istore 4
start local 4 6: goto 9
7: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
dup_x1
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
iload 1
iload 4
iand
bipush 24
ishr
i2b
bastore
8: iload 1
bipush 8
ishl
istore 1
9: StackMap locals:
StackMap stack:
iload 3
iinc 3 -1
ifgt 7
10: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/jndi/ldap/BerEncoder;
0 11 1 i I
0 11 2 tag I
0 11 3 intsize I
6 11 4 mask I
MethodParameters:
Name Flags
i
tag
intsize
public void encodeBoolean(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
iconst_1
invokevirtual com.sun.jndi.ldap.BerEncoder.encodeBoolean:(ZI)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/jndi/ldap/BerEncoder;
0 2 1 b Z
MethodParameters:
Name Flags
b
public void encodeBoolean(boolean, int);
descriptor: (ZI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_3
invokevirtual com.sun.jndi.ldap.BerEncoder.ensureFreeBytes:(I)V
1: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
dup_x1
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
iload 2
i2b
bastore
2: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
dup_x1
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
iconst_1
bastore
3: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
dup_x1
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
iload 1
ifeq 4
iconst_m1
goto 5
StackMap locals: com.sun.jndi.ldap.BerEncoder int int
StackMap stack: byte[] int
4: iconst_0
StackMap locals: com.sun.jndi.ldap.BerEncoder int int
StackMap stack: byte[] int int
5: bastore
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/jndi/ldap/BerEncoder;
0 7 1 b Z
0 7 2 tag I
MethodParameters:
Name Flags
b
tag
public void encodeString(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iconst_4
iload 2
invokevirtual com.sun.jndi.ldap.BerEncoder.encodeString:(Ljava/lang/String;IZ)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/jndi/ldap/BerEncoder;
0 2 1 str Ljava/lang/String;
0 2 2 encodeUTF8 Z
Exceptions:
throws com.sun.jndi.ldap.Ber$EncodeException
MethodParameters:
Name Flags
str
encodeUTF8
public void encodeString(java.lang.String, int, boolean);
descriptor: (Ljava/lang/String;IZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 2
invokevirtual com.sun.jndi.ldap.BerEncoder.encodeByte:(I)V
1: iconst_0
istore 4
start local 4 2: aconst_null
astore 6
start local 6 3: aload 1
ifnonnull 6
4: iconst_0
istore 5
start local 5 5: goto 17
end local 5 StackMap locals: com.sun.jndi.ldap.BerEncoder java.lang.String int int int top byte[]
StackMap stack:
6: iload 3
ifeq 12
7: aload 1
ldc "UTF8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
astore 6
8: aload 6
arraylength
istore 5
start local 5 9: goto 17
end local 5 StackMap locals:
StackMap stack: java.io.UnsupportedEncodingException
10: pop
11: new com.sun.jndi.ldap.Ber$EncodeException
dup
ldc "UTF8 not available on platform"
invokespecial com.sun.jndi.ldap.Ber$EncodeException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 1
ldc "8859_1"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
astore 6
13: aload 6
arraylength
istore 5
start local 5 14: goto 17
end local 5 StackMap locals:
StackMap stack: java.io.UnsupportedEncodingException
15: pop
16: new com.sun.jndi.ldap.Ber$EncodeException
dup
ldc "8859_1 not available on platform"
invokespecial com.sun.jndi.ldap.Ber$EncodeException.<init>:(Ljava/lang/String;)V
athrow
start local 5 17: StackMap locals: com.sun.jndi.ldap.BerEncoder java.lang.String int int int int byte[]
StackMap stack:
aload 0
iload 5
invokevirtual com.sun.jndi.ldap.BerEncoder.encodeLength:(I)V
18: aload 0
iload 5
invokevirtual com.sun.jndi.ldap.BerEncoder.ensureFreeBytes:(I)V
19: goto 21
20: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
dup_x1
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
aload 6
iload 4
iinc 4 1
baload
bastore
21: StackMap locals:
StackMap stack:
iload 4
iload 5
if_icmplt 20
22: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lcom/sun/jndi/ldap/BerEncoder;
0 23 1 str Ljava/lang/String;
0 23 2 tag I
0 23 3 encodeUTF8 Z
2 23 4 i I
5 6 5 count I
9 10 5 count I
14 15 5 count I
17 23 5 count I
3 23 6 bytes [B
Exception table:
from to target type
7 9 10 Class java.io.UnsupportedEncodingException
12 14 15 Class java.io.UnsupportedEncodingException
Exceptions:
throws com.sun.jndi.ldap.Ber$EncodeException
MethodParameters:
Name Flags
str
tag
encodeUTF8
public void encodeOctetString(byte[], int, int, int);
descriptor: ([BIII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
iload 2
invokevirtual com.sun.jndi.ldap.BerEncoder.encodeByte:(I)V
1: aload 0
iload 4
invokevirtual com.sun.jndi.ldap.BerEncoder.encodeLength:(I)V
2: iload 4
ifle 6
3: aload 0
iload 4
invokevirtual com.sun.jndi.ldap.BerEncoder.ensureFreeBytes:(I)V
4: aload 1
iload 3
aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
getfield com.sun.jndi.ldap.BerEncoder.offset:I
iload 4
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
iload 4
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
6: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/jndi/ldap/BerEncoder;
0 7 1 tb [B
0 7 2 tag I
0 7 3 tboffset I
0 7 4 length I
Exceptions:
throws com.sun.jndi.ldap.Ber$EncodeException
MethodParameters:
Name Flags
tb
tag
tboffset
length
public void encodeOctetString(byte[], int);
descriptor: ([BI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
iconst_0
aload 1
arraylength
invokevirtual com.sun.jndi.ldap.BerEncoder.encodeOctetString:([BIII)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/jndi/ldap/BerEncoder;
0 2 1 tb [B
0 2 2 tag I
Exceptions:
throws com.sun.jndi.ldap.Ber$EncodeException
MethodParameters:
Name Flags
tb
tag
private void encodeLength(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_4
invokevirtual com.sun.jndi.ldap.BerEncoder.ensureFreeBytes:(I)V
1: iload 1
sipush 128
if_icmpge 4
2: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
dup_x1
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
iload 1
i2b
bastore
3: goto 20
StackMap locals:
StackMap stack:
4: iload 1
sipush 255
if_icmpgt 8
5: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
dup_x1
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
bipush -127
bastore
6: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
dup_x1
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
iload 1
i2b
bastore
7: goto 20
StackMap locals:
StackMap stack:
8: iload 1
ldc 65535
if_icmpgt 13
9: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
dup_x1
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
bipush -126
bastore
10: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
dup_x1
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
iload 1
bipush 8
ishr
i2b
bastore
11: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
dup_x1
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
iload 1
sipush 255
iand
i2b
bastore
12: goto 20
StackMap locals:
StackMap stack:
13: iload 1
ldc 16777215
if_icmpgt 19
14: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
dup_x1
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
bipush -125
bastore
15: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
dup_x1
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
iload 1
bipush 16
ishr
i2b
bastore
16: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
dup_x1
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
iload 1
bipush 8
ishr
i2b
bastore
17: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
aload 0
dup
getfield com.sun.jndi.ldap.BerEncoder.offset:I
dup_x1
iconst_1
iadd
putfield com.sun.jndi.ldap.BerEncoder.offset:I
iload 1
sipush 255
iand
i2b
bastore
18: goto 20
19: StackMap locals:
StackMap stack:
new com.sun.jndi.ldap.Ber$EncodeException
dup
ldc "string too long"
invokespecial com.sun.jndi.ldap.Ber$EncodeException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lcom/sun/jndi/ldap/BerEncoder;
0 21 1 len I
Exceptions:
throws com.sun.jndi.ldap.Ber$EncodeException
MethodParameters:
Name Flags
len
public void encodeStringArray(java.lang.String[], boolean);
descriptor: ([Ljava/lang/String;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 3: goto 6
4: StackMap locals: int
StackMap stack:
aload 0
aload 1
iload 3
aaload
iload 2
invokevirtual com.sun.jndi.ldap.BerEncoder.encodeString:(Ljava/lang/String;Z)V
5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
aload 1
arraylength
if_icmplt 4
end local 3 7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/jndi/ldap/BerEncoder;
0 8 1 strs [Ljava/lang/String;
0 8 2 encodeUTF8 Z
3 7 3 i I
Exceptions:
throws com.sun.jndi.ldap.Ber$EncodeException
MethodParameters:
Name Flags
strs
encodeUTF8
private void ensureFreeBytes(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.jndi.ldap.BerEncoder.bufsize:I
aload 0
getfield com.sun.jndi.ldap.BerEncoder.offset:I
isub
iload 1
if_icmpge 8
1: aload 0
getfield com.sun.jndi.ldap.BerEncoder.bufsize:I
bipush 8
imul
istore 2
start local 2 2: iload 2
aload 0
getfield com.sun.jndi.ldap.BerEncoder.offset:I
isub
iload 1
if_icmpge 4
3: iload 2
iload 1
iadd
istore 2
4: StackMap locals: int
StackMap stack:
iload 2
newarray 8
astore 3
start local 3 5: aload 0
getfield com.sun.jndi.ldap.BerEncoder.buf:[B
iconst_0
aload 3
iconst_0
aload 0
getfield com.sun.jndi.ldap.BerEncoder.offset:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: aload 0
aload 3
putfield com.sun.jndi.ldap.BerEncoder.buf:[B
7: aload 0
iload 2
putfield com.sun.jndi.ldap.BerEncoder.bufsize:I
end local 3 end local 2 8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/jndi/ldap/BerEncoder;
0 9 1 len I
2 8 2 newsize I
5 8 3 newbuf [B
MethodParameters:
Name Flags
len
}
SourceFile: "BerEncoder.java"
InnerClasses:
final EncodeException = com.sun.jndi.ldap.Ber$EncodeException of com.sun.jndi.ldap.Ber