public abstract class sun.misc.CharacterEncoder
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: sun.misc.CharacterEncoder
super_class: java.lang.Object
{
protected java.io.PrintStream pStream;
descriptor: Ljava/io/PrintStream;
flags: (0x0004) ACC_PROTECTED
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/misc/CharacterEncoder;
protected abstract int bytesPerAtom();
descriptor: ()I
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
protected abstract int bytesPerLine();
descriptor: ()I
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
protected void encodeBufferPrefix(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.io.PrintStream
dup
aload 1
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
putfield sun.misc.CharacterEncoder.pStream:Ljava/io/PrintStream;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/misc/CharacterEncoder;
0 2 1 aStream Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
aStream
protected void encodeBufferSuffix(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/misc/CharacterEncoder;
0 1 1 aStream Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
aStream
protected void encodeLinePrefix(java.io.OutputStream, int);
descriptor: (Ljava/io/OutputStream;I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=3, args_size=3
start local 0 start local 1 start local 2 0: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/misc/CharacterEncoder;
0 1 1 aStream Ljava/io/OutputStream;
0 1 2 aLength I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
aStream
aLength
protected void encodeLineSuffix(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.misc.CharacterEncoder.pStream:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.println:()V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/misc/CharacterEncoder;
0 2 1 aStream Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
aStream
protected abstract void encodeAtom(java.io.OutputStream, byte[], int, int);
descriptor: (Ljava/io/OutputStream;[BII)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
aStream
someBytes
anOffset
aLength
protected int readFully(java.io.InputStream, byte[]);
descriptor: (Ljava/io/InputStream;[B)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: goto 7
2: StackMap locals: int
StackMap stack:
aload 1
invokevirtual java.io.InputStream.read:()I
istore 4
start local 4 3: iload 4
iconst_m1
if_icmpne 5
4: iload 3
ireturn
5: StackMap locals: int
StackMap stack:
aload 2
iload 3
iload 4
i2b
bastore
end local 4 6: iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
aload 2
arraylength
if_icmplt 2
end local 3 8: aload 2
arraylength
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/misc/CharacterEncoder;
0 9 1 in Ljava/io/InputStream;
0 9 2 buffer [B
1 8 3 i I
3 6 4 q I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
buffer
public void encode(java.io.InputStream, java.io.OutputStream);
descriptor: (Ljava/io/InputStream;Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual sun.misc.CharacterEncoder.bytesPerLine:()I
newarray 8
astore 5
start local 5 1: aload 0
aload 2
invokevirtual sun.misc.CharacterEncoder.encodeBufferPrefix:(Ljava/io/OutputStream;)V
2: StackMap locals: sun.misc.CharacterEncoder java.io.InputStream java.io.OutputStream top top byte[]
StackMap stack:
aload 0
aload 1
aload 5
invokevirtual sun.misc.CharacterEncoder.readFully:(Ljava/io/InputStream;[B)I
istore 4
start local 4 3: iload 4
ifne 5
4: goto 18
5: StackMap locals: sun.misc.CharacterEncoder java.io.InputStream java.io.OutputStream top int byte[]
StackMap stack:
aload 0
aload 2
iload 4
invokevirtual sun.misc.CharacterEncoder.encodeLinePrefix:(Ljava/io/OutputStream;I)V
6: iconst_0
istore 3
start local 3 7: goto 13
8: StackMap locals: sun.misc.CharacterEncoder java.io.InputStream java.io.OutputStream int int byte[]
StackMap stack:
iload 3
aload 0
invokevirtual sun.misc.CharacterEncoder.bytesPerAtom:()I
iadd
iload 4
if_icmpgt 11
9: aload 0
aload 2
aload 5
iload 3
aload 0
invokevirtual sun.misc.CharacterEncoder.bytesPerAtom:()I
invokevirtual sun.misc.CharacterEncoder.encodeAtom:(Ljava/io/OutputStream;[BII)V
10: goto 12
11: StackMap locals:
StackMap stack:
aload 0
aload 2
aload 5
iload 3
iload 4
iload 3
isub
invokevirtual sun.misc.CharacterEncoder.encodeAtom:(Ljava/io/OutputStream;[BII)V
12: StackMap locals:
StackMap stack:
iload 3
aload 0
invokevirtual sun.misc.CharacterEncoder.bytesPerAtom:()I
iadd
istore 3
StackMap locals:
StackMap stack:
13: iload 3
iload 4
if_icmplt 8
14: iload 4
aload 0
invokevirtual sun.misc.CharacterEncoder.bytesPerLine:()I
if_icmpge 16
15: goto 18
16: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual sun.misc.CharacterEncoder.encodeLineSuffix:(Ljava/io/OutputStream;)V
end local 4 end local 3 17: goto 2
start local 4 18: StackMap locals: sun.misc.CharacterEncoder java.io.InputStream java.io.OutputStream top int byte[]
StackMap stack:
aload 0
aload 2
invokevirtual sun.misc.CharacterEncoder.encodeBufferSuffix:(Ljava/io/OutputStream;)V
19: return
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/misc/CharacterEncoder;
0 20 1 inStream Ljava/io/InputStream;
0 20 2 outStream Ljava/io/OutputStream;
7 17 3 j I
3 17 4 numBytes I
18 20 4 numBytes I
1 20 5 tmpbuffer [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inStream
outStream
public void encode(byte[], java.io.OutputStream);
descriptor: ([BLjava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new java.io.ByteArrayInputStream
dup
aload 1
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
astore 3
start local 3 1: aload 0
aload 3
aload 2
invokevirtual sun.misc.CharacterEncoder.encode:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/misc/CharacterEncoder;
0 3 1 aBuffer [B
0 3 2 aStream Ljava/io/OutputStream;
1 3 3 inStream Ljava/io/ByteArrayInputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
aBuffer
aStream
public java.lang.String encode(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 2
start local 2 1: new java.io.ByteArrayInputStream
dup
aload 1
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
astore 3
start local 3 2: aconst_null
astore 4
start local 4 3: aload 0
aload 3
aload 2
invokevirtual sun.misc.CharacterEncoder.encode:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
4: aload 2
ldc "8859_1"
invokevirtual java.io.ByteArrayOutputStream.toString:(Ljava/lang/String;)Ljava/lang/String;
astore 4
5: goto 8
StackMap locals: sun.misc.CharacterEncoder byte[] java.io.ByteArrayOutputStream java.io.ByteArrayInputStream java.lang.String
StackMap stack: java.lang.Exception
6: pop
7: new java.lang.Error
dup
ldc "CharacterEncoder.encode internal error"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 4
areturn
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 Lsun/misc/CharacterEncoder;
0 9 1 aBuffer [B
1 9 2 outStream Ljava/io/ByteArrayOutputStream;
2 9 3 inStream Ljava/io/ByteArrayInputStream;
3 9 4 retVal Ljava/lang/String;
Exception table:
from to target type
3 5 6 Class java.lang.Exception
MethodParameters:
Name Flags
aBuffer
private byte[] getBytes(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 1
invokevirtual java.nio.ByteBuffer.hasArray:()Z
ifeq 7
2: aload 1
invokevirtual java.nio.ByteBuffer.array:()[B
astore 3
start local 3 3: aload 3
arraylength
aload 1
invokevirtual java.nio.ByteBuffer.capacity:()I
if_icmpne 7
4: aload 3
arraylength
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
if_icmpne 7
5: aload 3
astore 2
6: aload 1
aload 1
invokevirtual java.nio.ByteBuffer.limit:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
end local 3 7: StackMap locals: byte[]
StackMap stack:
aload 2
ifnonnull 10
8: aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
newarray 8
astore 2
9: aload 1
aload 2
invokevirtual java.nio.ByteBuffer.get:([B)Ljava/nio/ByteBuffer;
pop
10: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/misc/CharacterEncoder;
0 11 1 bb Ljava/nio/ByteBuffer;
1 11 2 buf [B
3 7 3 tmp [B
MethodParameters:
Name Flags
bb
public void encode(java.nio.ByteBuffer, java.io.OutputStream);
descriptor: (Ljava/nio/ByteBuffer;Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual sun.misc.CharacterEncoder.getBytes:(Ljava/nio/ByteBuffer;)[B
astore 3
start local 3 1: aload 0
aload 3
aload 2
invokevirtual sun.misc.CharacterEncoder.encode:([BLjava/io/OutputStream;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/misc/CharacterEncoder;
0 3 1 aBuffer Ljava/nio/ByteBuffer;
0 3 2 aStream Ljava/io/OutputStream;
1 3 3 buf [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
aBuffer
aStream
public java.lang.String encode(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual sun.misc.CharacterEncoder.getBytes:(Ljava/nio/ByteBuffer;)[B
astore 2
start local 2 1: aload 0
aload 2
invokevirtual sun.misc.CharacterEncoder.encode:([B)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/misc/CharacterEncoder;
0 2 1 aBuffer Ljava/nio/ByteBuffer;
1 2 2 buf [B
MethodParameters:
Name Flags
aBuffer
public void encodeBuffer(java.io.InputStream, java.io.OutputStream);
descriptor: (Ljava/io/InputStream;Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual sun.misc.CharacterEncoder.bytesPerLine:()I
newarray 8
astore 5
start local 5 1: aload 0
aload 2
invokevirtual sun.misc.CharacterEncoder.encodeBufferPrefix:(Ljava/io/OutputStream;)V
2: StackMap locals: sun.misc.CharacterEncoder java.io.InputStream java.io.OutputStream top top byte[]
StackMap stack:
aload 0
aload 1
aload 5
invokevirtual sun.misc.CharacterEncoder.readFully:(Ljava/io/InputStream;[B)I
istore 4
start local 4 3: iload 4
ifne 5
4: goto 16
5: StackMap locals: sun.misc.CharacterEncoder java.io.InputStream java.io.OutputStream top int byte[]
StackMap stack:
aload 0
aload 2
iload 4
invokevirtual sun.misc.CharacterEncoder.encodeLinePrefix:(Ljava/io/OutputStream;I)V
6: iconst_0
istore 3
start local 3 7: goto 13
8: StackMap locals: sun.misc.CharacterEncoder java.io.InputStream java.io.OutputStream int int byte[]
StackMap stack:
iload 3
aload 0
invokevirtual sun.misc.CharacterEncoder.bytesPerAtom:()I
iadd
iload 4
if_icmpgt 11
9: aload 0
aload 2
aload 5
iload 3
aload 0
invokevirtual sun.misc.CharacterEncoder.bytesPerAtom:()I
invokevirtual sun.misc.CharacterEncoder.encodeAtom:(Ljava/io/OutputStream;[BII)V
10: goto 12
11: StackMap locals:
StackMap stack:
aload 0
aload 2
aload 5
iload 3
iload 4
iload 3
isub
invokevirtual sun.misc.CharacterEncoder.encodeAtom:(Ljava/io/OutputStream;[BII)V
12: StackMap locals:
StackMap stack:
iload 3
aload 0
invokevirtual sun.misc.CharacterEncoder.bytesPerAtom:()I
iadd
istore 3
StackMap locals:
StackMap stack:
13: iload 3
iload 4
if_icmplt 8
14: aload 0
aload 2
invokevirtual sun.misc.CharacterEncoder.encodeLineSuffix:(Ljava/io/OutputStream;)V
15: iload 4
aload 0
invokevirtual sun.misc.CharacterEncoder.bytesPerLine:()I
if_icmpge 2
end local 3 16: StackMap locals: sun.misc.CharacterEncoder java.io.InputStream java.io.OutputStream top int byte[]
StackMap stack:
aload 0
aload 2
invokevirtual sun.misc.CharacterEncoder.encodeBufferSuffix:(Ljava/io/OutputStream;)V
17: return
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/misc/CharacterEncoder;
0 18 1 inStream Ljava/io/InputStream;
0 18 2 outStream Ljava/io/OutputStream;
7 16 3 j I
3 18 4 numBytes I
1 18 5 tmpbuffer [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inStream
outStream
public void encodeBuffer(byte[], java.io.OutputStream);
descriptor: ([BLjava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new java.io.ByteArrayInputStream
dup
aload 1
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
astore 3
start local 3 1: aload 0
aload 3
aload 2
invokevirtual sun.misc.CharacterEncoder.encodeBuffer:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/misc/CharacterEncoder;
0 3 1 aBuffer [B
0 3 2 aStream Ljava/io/OutputStream;
1 3 3 inStream Ljava/io/ByteArrayInputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
aBuffer
aStream
public java.lang.String encodeBuffer(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 2
start local 2 1: new java.io.ByteArrayInputStream
dup
aload 1
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
astore 3
start local 3 2: aload 0
aload 3
aload 2
invokevirtual sun.misc.CharacterEncoder.encodeBuffer:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
3: goto 6
StackMap locals: sun.misc.CharacterEncoder byte[] java.io.ByteArrayOutputStream java.io.ByteArrayInputStream
StackMap stack: java.lang.Exception
4: pop
5: new java.lang.Error
dup
ldc "CharacterEncoder.encodeBuffer internal error"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.ByteArrayOutputStream.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/misc/CharacterEncoder;
0 7 1 aBuffer [B
1 7 2 outStream Ljava/io/ByteArrayOutputStream;
2 7 3 inStream Ljava/io/ByteArrayInputStream;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
MethodParameters:
Name Flags
aBuffer
public void encodeBuffer(java.nio.ByteBuffer, java.io.OutputStream);
descriptor: (Ljava/nio/ByteBuffer;Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual sun.misc.CharacterEncoder.getBytes:(Ljava/nio/ByteBuffer;)[B
astore 3
start local 3 1: aload 0
aload 3
aload 2
invokevirtual sun.misc.CharacterEncoder.encodeBuffer:([BLjava/io/OutputStream;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/misc/CharacterEncoder;
0 3 1 aBuffer Ljava/nio/ByteBuffer;
0 3 2 aStream Ljava/io/OutputStream;
1 3 3 buf [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
aBuffer
aStream
public java.lang.String encodeBuffer(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual sun.misc.CharacterEncoder.getBytes:(Ljava/nio/ByteBuffer;)[B
astore 2
start local 2 1: aload 0
aload 2
invokevirtual sun.misc.CharacterEncoder.encodeBuffer:([B)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/misc/CharacterEncoder;
0 2 1 aBuffer Ljava/nio/ByteBuffer;
1 2 2 buf [B
MethodParameters:
Name Flags
aBuffer
}
SourceFile: "CharacterEncoder.java"