final class com.sun.xml.internal.org.jvnet.mimepull.DataHead
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.sun.xml.internal.org.jvnet.mimepull.DataHead
super_class: java.lang.Object
{
volatile com.sun.xml.internal.org.jvnet.mimepull.Chunk head;
descriptor: Lcom/sun/xml/internal/org/jvnet/mimepull/Chunk;
flags: (0x0040) ACC_VOLATILE
volatile com.sun.xml.internal.org.jvnet.mimepull.Chunk tail;
descriptor: Lcom/sun/xml/internal/org/jvnet/mimepull/Chunk;
flags: (0x0040) ACC_VOLATILE
com.sun.xml.internal.org.jvnet.mimepull.DataFile dataFile;
descriptor: Lcom/sun/xml/internal/org/jvnet/mimepull/DataFile;
flags: (0x0000)
private final com.sun.xml.internal.org.jvnet.mimepull.MIMEPart part;
descriptor: Lcom/sun/xml/internal/org/jvnet/mimepull/MIMEPart;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
boolean readOnce;
descriptor: Z
flags: (0x0000)
volatile long inMemory;
descriptor: J
flags: (0x0040) ACC_VOLATILE
private java.lang.Throwable consumedAt;
descriptor: Ljava/lang/Throwable;
flags: (0x0002) ACC_PRIVATE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lcom/sun/xml/internal/org/jvnet/mimepull/DataHead;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic com.sun.xml.internal.org.jvnet.mimepull.DataHead.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(com.sun.xml.internal.org.jvnet.mimepull.MIMEPart);
descriptor: (Lcom/sun/xml/internal/org/jvnet/mimepull/MIMEPart;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.part:Lcom/sun/xml/internal/org/jvnet/mimepull/MIMEPart;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/xml/internal/org/jvnet/mimepull/DataHead;
0 3 1 part Lcom/sun/xml/internal/org/jvnet/mimepull/MIMEPart;
MethodParameters:
Name Flags
part
void addBody(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0000)
Code:
stack=8, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
monitorenter
1: aload 0
dup
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.inMemory:J
aload 1
invokevirtual java.nio.ByteBuffer.limit:()I
i2l
ladd
putfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.inMemory:J
2: aload 2
monitorexit
3: goto 6
StackMap locals: com.sun.xml.internal.org.jvnet.mimepull.DataHead java.nio.ByteBuffer com.sun.xml.internal.org.jvnet.mimepull.DataHead
StackMap stack: java.lang.Throwable
4: aload 2
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.tail:Lcom/sun/xml/internal/org/jvnet/mimepull/Chunk;
ifnull 9
7: aload 0
aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.tail:Lcom/sun/xml/internal/org/jvnet/mimepull/Chunk;
aload 0
aload 1
invokevirtual com.sun.xml.internal.org.jvnet.mimepull.Chunk.createNext:(Lcom/sun/xml/internal/org/jvnet/mimepull/DataHead;Ljava/nio/ByteBuffer;)Lcom/sun/xml/internal/org/jvnet/mimepull/Chunk;
putfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.tail:Lcom/sun/xml/internal/org/jvnet/mimepull/Chunk;
8: goto 10
9: StackMap locals:
StackMap stack:
aload 0
aload 0
new com.sun.xml.internal.org.jvnet.mimepull.Chunk
dup
new com.sun.xml.internal.org.jvnet.mimepull.MemoryData
dup
aload 1
aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.part:Lcom/sun/xml/internal/org/jvnet/mimepull/MIMEPart;
getfield com.sun.xml.internal.org.jvnet.mimepull.MIMEPart.msg:Lcom/sun/xml/internal/org/jvnet/mimepull/MIMEMessage;
getfield com.sun.xml.internal.org.jvnet.mimepull.MIMEMessage.config:Lcom/sun/xml/internal/org/jvnet/mimepull/MIMEConfig;
invokespecial com.sun.xml.internal.org.jvnet.mimepull.MemoryData.<init>:(Ljava/nio/ByteBuffer;Lcom/sun/xml/internal/org/jvnet/mimepull/MIMEConfig;)V
invokespecial com.sun.xml.internal.org.jvnet.mimepull.Chunk.<init>:(Lcom/sun/xml/internal/org/jvnet/mimepull/Data;)V
dup_x1
putfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.tail:Lcom/sun/xml/internal/org/jvnet/mimepull/Chunk;
putfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.head:Lcom/sun/xml/internal/org/jvnet/mimepull/Chunk;
10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/xml/internal/org/jvnet/mimepull/DataHead;
0 11 1 buf Ljava/nio/ByteBuffer;
Exception table:
from to target type
1 3 4 any
4 5 4 any
MethodParameters:
Name Flags
buf
void doneParsing();
descriptor: ()V
flags: (0x0000)
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/org/jvnet/mimepull/DataHead;
void moveTo(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0000)
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.dataFile:Lcom/sun/xml/internal/org/jvnet/mimepull/DataFile;
ifnull 3
1: aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.dataFile:Lcom/sun/xml/internal/org/jvnet/mimepull/DataFile;
aload 1
invokevirtual com.sun.xml.internal.org.jvnet.mimepull.DataFile.renameTo:(Ljava/io/File;)V
2: goto 20
3: StackMap locals:
StackMap stack:
new java.io.FileOutputStream
dup
aload 1
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
astore 2
start local 2 4: aload 0
invokevirtual com.sun.xml.internal.org.jvnet.mimepull.DataHead.readOnce:()Ljava/io/InputStream;
astore 3
start local 3 5: sipush 8192
newarray 8
astore 4
start local 4 6: goto 8
start local 5 7: StackMap locals: com.sun.xml.internal.org.jvnet.mimepull.DataHead java.io.File java.io.OutputStream java.io.InputStream byte[] int
StackMap stack:
aload 2
aload 4
iconst_0
iload 5
invokevirtual java.io.OutputStream.write:([BII)V
end local 5 8: StackMap locals:
StackMap stack:
aload 3
aload 4
invokevirtual java.io.InputStream.read:([B)I
dup
istore 5
start local 5 9: iconst_m1
if_icmpne 7
end local 5 end local 4 end local 3 10: goto 15
StackMap locals: com.sun.xml.internal.org.jvnet.mimepull.DataHead java.io.File java.io.OutputStream
StackMap stack: java.lang.Throwable
11: astore 6
12: aload 2
ifnull 14
13: aload 2
invokevirtual java.io.OutputStream.close:()V
14: StackMap locals: com.sun.xml.internal.org.jvnet.mimepull.DataHead java.io.File java.io.OutputStream top top top java.lang.Throwable
StackMap stack:
aload 6
athrow
15: StackMap locals: com.sun.xml.internal.org.jvnet.mimepull.DataHead java.io.File java.io.OutputStream
StackMap stack:
aload 2
ifnull 20
16: aload 2
invokevirtual java.io.OutputStream.close:()V
end local 2 17: goto 20
StackMap locals: com.sun.xml.internal.org.jvnet.mimepull.DataHead java.io.File
StackMap stack: java.io.IOException
18: astore 2
start local 2 19: new com.sun.xml.internal.org.jvnet.mimepull.MIMEParsingException
dup
aload 2
invokespecial com.sun.xml.internal.org.jvnet.mimepull.MIMEParsingException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 20: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lcom/sun/xml/internal/org/jvnet/mimepull/DataHead;
0 21 1 f Ljava/io/File;
4 17 2 os Ljava/io/OutputStream;
5 10 3 in Ljava/io/InputStream;
6 10 4 buf [B
7 8 5 len I
9 10 5 len I
19 20 2 ioe Ljava/io/IOException;
Exception table:
from to target type
4 11 11 any
3 17 18 Class java.io.IOException
MethodParameters:
Name Flags
f
void close();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
aload 0
aconst_null
dup_x1
putfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.tail:Lcom/sun/xml/internal/org/jvnet/mimepull/Chunk;
putfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.head:Lcom/sun/xml/internal/org/jvnet/mimepull/Chunk;
1: aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.dataFile:Lcom/sun/xml/internal/org/jvnet/mimepull/DataFile;
ifnull 3
2: aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.dataFile:Lcom/sun/xml/internal/org/jvnet/mimepull/DataFile;
invokevirtual com.sun.xml.internal.org.jvnet.mimepull.DataFile.close:()V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/xml/internal/org/jvnet/mimepull/DataHead;
public java.io.InputStream read();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.readOnce:Z
ifeq 4
1: new java.lang.IllegalStateException
dup
ldc "readOnce() is called before, read() cannot be called later."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.part:Lcom/sun/xml/internal/org/jvnet/mimepull/MIMEPart;
getfield com.sun.xml.internal.org.jvnet.mimepull.MIMEPart.msg:Lcom/sun/xml/internal/org/jvnet/mimepull/MIMEMessage;
invokevirtual com.sun.xml.internal.org.jvnet.mimepull.MIMEMessage.makeProgress:()Z
ifne 4
3: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "No such MIME Part: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.part:Lcom/sun/xml/internal/org/jvnet/mimepull/MIMEPart;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.tail:Lcom/sun/xml/internal/org/jvnet/mimepull/Chunk;
ifnull 2
5: aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.head:Lcom/sun/xml/internal/org/jvnet/mimepull/Chunk;
ifnonnull 7
6: new java.lang.IllegalStateException
dup
ldc "Already read. Probably readOnce() is called before."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
new com.sun.xml.internal.org.jvnet.mimepull.DataHead$ReadMultiStream
dup
aload 0
invokespecial com.sun.xml.internal.org.jvnet.mimepull.DataHead$ReadMultiStream.<init>:(Lcom/sun/xml/internal/org/jvnet/mimepull/DataHead;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/xml/internal/org/jvnet/mimepull/DataHead;
private boolean unconsumed();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.consumedAt:Ljava/lang/Throwable;
ifnull 4
1: new java.lang.AssertionError
dup
ldc "readOnce() is already called before. See the nested exception from where it's called."
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
astore 1
start local 1 2: aload 1
aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.consumedAt:Ljava/lang/Throwable;
invokevirtual java.lang.AssertionError.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
3: aload 1
athrow
end local 1 4: StackMap locals:
StackMap stack:
aload 0
new java.lang.Exception
dup
invokespecial java.lang.Exception.<init>:()V
invokevirtual java.lang.Exception.fillInStackTrace:()Ljava/lang/Throwable;
putfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.consumedAt:Ljava/lang/Throwable;
5: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/xml/internal/org/jvnet/mimepull/DataHead;
2 4 1 error Ljava/lang/AssertionError;
public java.io.InputStream readOnce();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: getstatic com.sun.xml.internal.org.jvnet.mimepull.DataHead.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual com.sun.xml.internal.org.jvnet.mimepull.DataHead.unconsumed:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.readOnce:Z
ifeq 3
2: new java.lang.IllegalStateException
dup
ldc "readOnce() is called before. It can only be called once."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.readOnce:Z
4: goto 7
5: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.part:Lcom/sun/xml/internal/org/jvnet/mimepull/MIMEPart;
getfield com.sun.xml.internal.org.jvnet.mimepull.MIMEPart.msg:Lcom/sun/xml/internal/org/jvnet/mimepull/MIMEMessage;
invokevirtual com.sun.xml.internal.org.jvnet.mimepull.MIMEMessage.makeProgress:()Z
ifne 7
aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.tail:Lcom/sun/xml/internal/org/jvnet/mimepull/Chunk;
ifnonnull 7
6: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "No such Part: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.part:Lcom/sun/xml/internal/org/jvnet/mimepull/MIMEPart;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.tail:Lcom/sun/xml/internal/org/jvnet/mimepull/Chunk;
ifnull 5
8: new com.sun.xml.internal.org.jvnet.mimepull.DataHead$ReadOnceStream
dup
aload 0
invokespecial com.sun.xml.internal.org.jvnet.mimepull.DataHead$ReadOnceStream.<init>:(Lcom/sun/xml/internal/org/jvnet/mimepull/DataHead;)V
astore 1
start local 1 9: aload 0
aconst_null
putfield com.sun.xml.internal.org.jvnet.mimepull.DataHead.head:Lcom/sun/xml/internal/org/jvnet/mimepull/Chunk;
10: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/xml/internal/org/jvnet/mimepull/DataHead;
9 11 1 in Ljava/io/InputStream;
}
SourceFile: "DataHead.java"
NestMembers:
com.sun.xml.internal.org.jvnet.mimepull.DataHead$ReadMultiStream com.sun.xml.internal.org.jvnet.mimepull.DataHead$ReadOnceStream
InnerClasses:
ReadMultiStream = com.sun.xml.internal.org.jvnet.mimepull.DataHead$ReadMultiStream of com.sun.xml.internal.org.jvnet.mimepull.DataHead
final ReadOnceStream = com.sun.xml.internal.org.jvnet.mimepull.DataHead$ReadOnceStream of com.sun.xml.internal.org.jvnet.mimepull.DataHead