public class sun.awt.datatransfer.DataTransferer$ReencodingInputStream extends java.io.InputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.awt.datatransfer.DataTransferer$ReencodingInputStream
super_class: java.io.InputStream
{
java.io.BufferedReader wrapped;
descriptor: Ljava/io/BufferedReader;
flags: (0x0000)
final char[] in;
descriptor: [C
flags: (0x0010) ACC_FINAL
byte[] out;
descriptor: [B
flags: (0x0000)
java.nio.charset.CharsetEncoder encoder;
descriptor: Ljava/nio/charset/CharsetEncoder;
flags: (0x0000)
java.nio.CharBuffer inBuf;
descriptor: Ljava/nio/CharBuffer;
flags: (0x0000)
java.nio.ByteBuffer outBuf;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0000)
char[] eoln;
descriptor: [C
flags: (0x0000)
int numTerminators;
descriptor: I
flags: (0x0000)
boolean eos;
descriptor: Z
flags: (0x0000)
int index;
descriptor: I
flags: (0x0000)
int limit;
descriptor: I
flags: (0x0000)
final sun.awt.datatransfer.DataTransferer this$0;
descriptor: Lsun/awt/datatransfer/DataTransferer;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
public void <init>(sun.awt.datatransfer.DataTransferer, java.io.InputStream, long, java.lang.String, java.awt.datatransfer.Transferable);
descriptor: (Lsun/awt/datatransfer/DataTransferer;Ljava/io/InputStream;JLjava/lang/String;Ljava/awt/datatransfer/Transferable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=11, args_size=6
start local 0 start local 2 start local 3 start local 5 start local 6 0: aload 0
aload 1
putfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.this$0:Lsun/awt/datatransfer/DataTransferer;
1: aload 0
invokespecial java.io.InputStream.<init>:()V
2: aload 0
iconst_2
newarray 5
putfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.in:[C
3: lload 3
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
astore 7
start local 7 4: aload 1
lload 3
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aload 6
invokevirtual sun.awt.datatransfer.DataTransferer.getBestCharsetForTextFormat:(Ljava/lang/Long;Ljava/awt/datatransfer/Transferable;)Ljava/lang/String;
astore 8
start local 8 5: aload 0
new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 2
aload 8
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/lang/String;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
putfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.wrapped:Ljava/io/BufferedReader;
6: aload 5
ifnonnull 8
7: new java.lang.NullPointerException
dup
ldc "null target encoding"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: sun.awt.datatransfer.DataTransferer$ReencodingInputStream sun.awt.datatransfer.DataTransferer java.io.InputStream long java.lang.String java.awt.datatransfer.Transferable java.lang.Long java.lang.String
StackMap stack:
aload 0
aload 5
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
putfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.encoder:Ljava/nio/charset/CharsetEncoder;
9: aload 0
aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.encoder:Ljava/nio/charset/CharsetEncoder;
invokevirtual java.nio.charset.CharsetEncoder.maxBytesPerChar:()F
fconst_2
fmul
f2d
ldc 0.5
dadd
d2i
newarray 8
putfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.out:[B
10: aload 0
aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.in:[C
invokestatic java.nio.CharBuffer.wrap:([C)Ljava/nio/CharBuffer;
putfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.inBuf:Ljava/nio/CharBuffer;
11: aload 0
aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.out:[B
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
putfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.outBuf:Ljava/nio/ByteBuffer;
12: goto 15
13: StackMap locals:
StackMap stack: java.lang.RuntimeException
astore 9
start local 9 14: new java.io.IOException
dup
aload 9
invokevirtual java.lang.RuntimeException.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 9 15: StackMap locals:
StackMap stack:
getstatic sun.awt.datatransfer.DataTransferer.nativeEOLNs:Ljava/util/Map;
aload 7
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 9
start local 9 16: aload 9
ifnull 18
17: aload 0
aload 9
invokevirtual java.lang.String.toCharArray:()[C
putfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.eoln:[C
18: StackMap locals: java.lang.String
StackMap stack:
getstatic sun.awt.datatransfer.DataTransferer.nativeTerminators:Ljava/util/Map;
aload 7
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 10
start local 10 19: aload 10
ifnull 21
20: aload 0
aload 10
invokevirtual java.lang.Integer.intValue:()I
putfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.numTerminators:I
21: StackMap locals: java.lang.Integer
StackMap stack:
return
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/awt/datatransfer/DataTransferer$ReencodingInputStream;
0 22 2 bytestream Ljava/io/InputStream;
0 22 3 format J
0 22 5 targetEncoding Ljava/lang/String;
0 22 6 localeTransferable Ljava/awt/datatransfer/Transferable;
4 22 7 lFormat Ljava/lang/Long;
5 22 8 sourceEncoding Ljava/lang/String;
14 15 9 e Ljava/lang/RuntimeException;
16 22 9 sEoln Ljava/lang/String;
19 22 10 terminators Ljava/lang/Integer;
Exception table:
from to target type
8 12 13 Class java.nio.charset.IllegalCharsetNameException
8 12 13 Class java.nio.charset.UnsupportedCharsetException
8 12 13 Class java.lang.UnsupportedOperationException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
this$0 final
bytestream
format
targetEncoding
localeTransferable
private int readChar();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.wrapped:Ljava/io/BufferedReader;
invokevirtual java.io.BufferedReader.read:()I
istore 1
start local 1 1: iload 1
iconst_m1
if_icmpne 4
2: aload 0
iconst_1
putfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.eos:Z
3: iconst_m1
ireturn
4: StackMap locals: int
StackMap stack:
aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.numTerminators:I
ifle 7
iload 1
ifne 7
5: aload 0
iconst_1
putfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.eos:Z
6: iconst_m1
ireturn
7: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.eoln:[C
ifnull 9
aload 0
aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.eoln:[C
iload 1
invokevirtual sun.awt.datatransfer.DataTransferer$ReencodingInputStream.matchCharArray:([CI)Z
ifeq 9
8: bipush 10
istore 1
9: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/awt/datatransfer/DataTransferer$ReencodingInputStream;
1 10 1 c I
Exceptions:
throws java.io.IOException
public int read();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.eos:Z
ifeq 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.index:I
aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.limit:I
if_icmplt 21
3: aload 0
invokevirtual sun.awt.datatransfer.DataTransferer$ReencodingInputStream.readChar:()I
istore 1
start local 1 4: iload 1
iconst_m1
if_icmpne 6
5: iconst_m1
ireturn
6: StackMap locals: int
StackMap stack:
aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.in:[C
iconst_0
iload 1
i2c
castore
7: aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.in:[C
iconst_1
iconst_0
castore
8: aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.inBuf:Ljava/nio/CharBuffer;
iconst_1
invokevirtual java.nio.CharBuffer.limit:(I)Ljava/nio/CharBuffer;
pop
9: iload 1
i2c
invokestatic java.lang.Character.isHighSurrogate:(C)Z
ifeq 14
10: aload 0
invokevirtual sun.awt.datatransfer.DataTransferer$ReencodingInputStream.readChar:()I
istore 1
11: iload 1
iconst_m1
if_icmpeq 14
12: aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.in:[C
iconst_1
iload 1
i2c
castore
13: aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.inBuf:Ljava/nio/CharBuffer;
iconst_2
invokevirtual java.nio.CharBuffer.limit:(I)Ljava/nio/CharBuffer;
pop
14: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.inBuf:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.rewind:()Ljava/nio/CharBuffer;
pop
15: aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.outBuf:Ljava/nio/ByteBuffer;
aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.out:[B
arraylength
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.rewind:()Ljava/nio/ByteBuffer;
pop
16: aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.encoder:Ljava/nio/charset/CharsetEncoder;
aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.inBuf:Ljava/nio/CharBuffer;
aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.outBuf:Ljava/nio/ByteBuffer;
iconst_0
invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
pop
17: aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.outBuf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
18: aload 0
aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.outBuf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.limit:()I
putfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.limit:I
19: aload 0
iconst_0
putfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.index:I
20: aload 0
invokevirtual sun.awt.datatransfer.DataTransferer$ReencodingInputStream.read:()I
ireturn
end local 1 21: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.out:[B
aload 0
dup
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.index:I
dup_x1
iconst_1
iadd
putfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.index:I
baload
sipush 255
iand
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/awt/datatransfer/DataTransferer$ReencodingInputStream;
4 21 1 c I
Exceptions:
throws java.io.IOException
public int available();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.eos:Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.limit:I
aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.index:I
isub
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/awt/datatransfer/DataTransferer$ReencodingInputStream;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.wrapped:Ljava/io/BufferedReader;
invokevirtual java.io.BufferedReader.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/datatransfer/DataTransferer$ReencodingInputStream;
Exceptions:
throws java.io.IOException
private boolean matchCharArray(char[], int);
descriptor: ([CI)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.wrapped:Ljava/io/BufferedReader;
aload 1
arraylength
invokevirtual java.io.BufferedReader.mark:(I)V
1: iconst_0
istore 3
start local 3 2: iload 2
i2c
aload 1
iconst_0
caload
if_icmpne 9
3: iconst_1
istore 3
goto 8
4: StackMap locals: int
StackMap stack:
aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.wrapped:Ljava/io/BufferedReader;
invokevirtual java.io.BufferedReader.read:()I
istore 2
5: iload 2
iconst_m1
if_icmpeq 9
iload 2
i2c
aload 1
iload 3
caload
if_icmpeq 7
6: goto 9
7: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
aload 1
arraylength
if_icmplt 4
9: StackMap locals:
StackMap stack:
iload 3
aload 1
arraylength
if_icmpne 11
10: iconst_1
ireturn
11: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.datatransfer.DataTransferer$ReencodingInputStream.wrapped:Ljava/io/BufferedReader;
invokevirtual java.io.BufferedReader.reset:()V
12: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/awt/datatransfer/DataTransferer$ReencodingInputStream;
0 13 1 array [C
0 13 2 c I
2 13 3 count I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
array
c
}
SourceFile: "DataTransferer.java"
NestHost: sun.awt.datatransfer.DataTransferer
InnerClasses:
public ReencodingInputStream = sun.awt.datatransfer.DataTransferer$ReencodingInputStream of sun.awt.datatransfer.DataTransferer