public final class javax.print.SimpleDoc implements javax.print.Doc
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: javax.print.SimpleDoc
super_class: java.lang.Object
{
private javax.print.DocFlavor flavor;
descriptor: Ljavax/print/DocFlavor;
flags: (0x0002) ACC_PRIVATE
private javax.print.attribute.DocAttributeSet attributes;
descriptor: Ljavax/print/attribute/DocAttributeSet;
flags: (0x0002) ACC_PRIVATE
private java.lang.Object printData;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
private java.io.Reader reader;
descriptor: Ljava/io/Reader;
flags: (0x0002) ACC_PRIVATE
private java.io.InputStream inStream;
descriptor: Ljava/io/InputStream;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.Object, javax.print.DocFlavor, javax.print.attribute.DocAttributeSet);
descriptor: (Ljava/lang/Object;Ljavax/print/DocFlavor;Ljavax/print/attribute/DocAttributeSet;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 2
ifnull 2
aload 1
ifnonnull 3
2: StackMap locals: javax.print.SimpleDoc java.lang.Object javax.print.DocFlavor javax.print.attribute.DocAttributeSet
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "null argument(s)"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aconst_null
astore 4
start local 4 4: aload 2
invokevirtual javax.print.DocFlavor.getRepresentationClassName:()Ljava/lang/String;
astore 5
start local 5 5: aload 5
invokestatic sun.reflect.misc.ReflectUtil.checkPackageAccess:(Ljava/lang/String;)V
6: aload 5
iconst_0
7: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
8: invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
astore 4
end local 5 9: goto 12
StackMap locals: javax.print.SimpleDoc java.lang.Object javax.print.DocFlavor javax.print.attribute.DocAttributeSet java.lang.Class
StackMap stack: java.lang.Throwable
10: pop
11: new java.lang.IllegalArgumentException
dup
ldc "unknown representation class"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 4
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifne 14
13: new java.lang.IllegalArgumentException
dup
ldc "data is not of declared type"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 0
aload 2
putfield javax.print.SimpleDoc.flavor:Ljavax/print/DocFlavor;
15: aload 3
ifnull 17
16: aload 0
aload 3
invokestatic javax.print.attribute.AttributeSetUtilities.unmodifiableView:(Ljavax/print/attribute/DocAttributeSet;)Ljavax/print/attribute/DocAttributeSet;
putfield javax.print.SimpleDoc.attributes:Ljavax/print/attribute/DocAttributeSet;
17: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield javax.print.SimpleDoc.printData:Ljava/lang/Object;
18: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljavax/print/SimpleDoc;
0 19 1 printData Ljava/lang/Object;
0 19 2 flavor Ljavax/print/DocFlavor;
0 19 3 attributes Ljavax/print/attribute/DocAttributeSet;
4 19 4 repClass Ljava/lang/Class<*>;
5 9 5 className Ljava/lang/String;
Exception table:
from to target type
4 9 10 Class java.lang.Throwable
MethodParameters:
Name Flags
printData
flavor
attributes
public javax.print.DocFlavor getDocFlavor();
descriptor: ()Ljavax/print/DocFlavor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.print.SimpleDoc.flavor:Ljavax/print/DocFlavor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/print/SimpleDoc;
public javax.print.attribute.DocAttributeSet getAttributes();
descriptor: ()Ljavax/print/attribute/DocAttributeSet;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.print.SimpleDoc.attributes:Ljavax/print/attribute/DocAttributeSet;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/print/SimpleDoc;
public java.lang.Object getPrintData();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.print.SimpleDoc.printData:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/print/SimpleDoc;
Exceptions:
throws java.io.IOException
public java.io.Reader getReaderForText();
descriptor: ()Ljava/io/Reader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield javax.print.SimpleDoc.printData:Ljava/lang/Object;
instanceof java.io.Reader
ifeq 2
1: aload 0
getfield javax.print.SimpleDoc.printData:Ljava/lang/Object;
checkcast java.io.Reader
areturn
2: StackMap locals:
StackMap stack:
aload 0
dup
astore 1
monitorenter
3: aload 0
getfield javax.print.SimpleDoc.reader:Ljava/io/Reader;
ifnull 6
4: aload 0
getfield javax.print.SimpleDoc.reader:Ljava/io/Reader;
aload 1
monitorexit
5: areturn
6: StackMap locals: javax.print.SimpleDoc
StackMap stack:
aload 0
getfield javax.print.SimpleDoc.printData:Ljava/lang/Object;
instanceof char[]
ifeq 9
7: aload 0
new java.io.CharArrayReader
dup
aload 0
getfield javax.print.SimpleDoc.printData:Ljava/lang/Object;
checkcast char[]
invokespecial java.io.CharArrayReader.<init>:([C)V
putfield javax.print.SimpleDoc.reader:Ljava/io/Reader;
8: goto 11
9: StackMap locals:
StackMap stack:
aload 0
getfield javax.print.SimpleDoc.printData:Ljava/lang/Object;
instanceof java.lang.String
ifeq 11
10: aload 0
new java.io.StringReader
dup
aload 0
getfield javax.print.SimpleDoc.printData:Ljava/lang/Object;
checkcast java.lang.String
invokespecial java.io.StringReader.<init>:(Ljava/lang/String;)V
putfield javax.print.SimpleDoc.reader:Ljava/io/Reader;
11: StackMap locals:
StackMap stack:
aload 1
monitorexit
12: goto 15
StackMap locals:
StackMap stack: java.lang.Throwable
13: aload 1
monitorexit
14: athrow
15: StackMap locals:
StackMap stack:
aload 0
getfield javax.print.SimpleDoc.reader:Ljava/io/Reader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljavax/print/SimpleDoc;
Exception table:
from to target type
3 5 13 any
6 12 13 any
13 14 13 any
Exceptions:
throws java.io.IOException
public java.io.InputStream getStreamForBytes();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield javax.print.SimpleDoc.printData:Ljava/lang/Object;
instanceof java.io.InputStream
ifeq 2
1: aload 0
getfield javax.print.SimpleDoc.printData:Ljava/lang/Object;
checkcast java.io.InputStream
areturn
2: StackMap locals:
StackMap stack:
aload 0
dup
astore 1
monitorenter
3: aload 0
getfield javax.print.SimpleDoc.inStream:Ljava/io/InputStream;
ifnull 6
4: aload 0
getfield javax.print.SimpleDoc.inStream:Ljava/io/InputStream;
aload 1
monitorexit
5: areturn
6: StackMap locals: javax.print.SimpleDoc
StackMap stack:
aload 0
getfield javax.print.SimpleDoc.printData:Ljava/lang/Object;
instanceof byte[]
ifeq 8
7: aload 0
new java.io.ByteArrayInputStream
dup
aload 0
getfield javax.print.SimpleDoc.printData:Ljava/lang/Object;
checkcast byte[]
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
putfield javax.print.SimpleDoc.inStream:Ljava/io/InputStream;
8: StackMap locals:
StackMap stack:
aload 1
monitorexit
9: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
10: aload 1
monitorexit
11: athrow
12: StackMap locals:
StackMap stack:
aload 0
getfield javax.print.SimpleDoc.inStream:Ljava/io/InputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljavax/print/SimpleDoc;
Exception table:
from to target type
3 5 10 any
6 9 10 any
10 11 10 any
Exceptions:
throws java.io.IOException
}
SourceFile: "SimpleDoc.java"