class jdk.tools.jlink.internal.ByteArrayResourcePoolEntry extends jdk.tools.jlink.internal.AbstractResourcePoolEntry
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.tools.jlink.internal.ByteArrayResourcePoolEntry
super_class: jdk.tools.jlink.internal.AbstractResourcePoolEntry
{
private final byte[] buffer;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.lang.String, java.lang.String, jdk.tools.jlink.plugin.ResourcePoolEntry$Type, byte[]);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljdk/tools/jlink/plugin/ResourcePoolEntry$Type;[B)V
flags: (0x0000)
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
invokespecial jdk.tools.jlink.internal.AbstractResourcePoolEntry.<init>:(Ljava/lang/String;Ljava/lang/String;Ljdk/tools/jlink/plugin/ResourcePoolEntry$Type;)V
1: aload 0
aload 4
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast byte[]
putfield jdk.tools.jlink.internal.ByteArrayResourcePoolEntry.buffer:[B
2: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/tools/jlink/internal/ByteArrayResourcePoolEntry;
0 3 1 module Ljava/lang/String;
0 3 2 path Ljava/lang/String;
0 3 3 type Ljdk/tools/jlink/plugin/ResourcePoolEntry$Type;
0 3 4 buffer [B
MethodParameters:
Name Flags
module
path
type
buffer
public byte[] contentBytes();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.ByteArrayResourcePoolEntry.buffer:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/ByteArrayResourcePoolEntry;
public java.io.InputStream content();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.io.ByteArrayInputStream
dup
aload 0
getfield jdk.tools.jlink.internal.ByteArrayResourcePoolEntry.buffer:[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/ByteArrayResourcePoolEntry;
public void write(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield jdk.tools.jlink.internal.ByteArrayResourcePoolEntry.buffer:[B
invokevirtual java.io.OutputStream.write:([B)V
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 2
start local 2 3: new java.io.UncheckedIOException
dup
aload 2
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 2 4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/tools/jlink/internal/ByteArrayResourcePoolEntry;
0 5 1 out Ljava/io/OutputStream;
3 4 2 ex Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
out
public long contentLength();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.ByteArrayResourcePoolEntry.buffer:[B
arraylength
i2l
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/ByteArrayResourcePoolEntry;
}
SourceFile: "ByteArrayResourcePoolEntry.java"
InnerClasses:
public final Type = jdk.tools.jlink.plugin.ResourcePoolEntry$Type of jdk.tools.jlink.plugin.ResourcePoolEntry