public class org.apache.http.nio.entity.NByteArrayEntity extends org.apache.http.entity.AbstractHttpEntity implements org.apache.http.nio.entity.HttpAsyncContentProducer, org.apache.http.nio.entity.ProducingNHttpEntity
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.http.nio.entity.NByteArrayEntity
super_class: org.apache.http.entity.AbstractHttpEntity
{
private final byte[] b;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int off;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int len;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.ByteBuffer buf;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected final byte[] content;
descriptor: [B
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
RuntimeVisibleAnnotations:
java.lang.Deprecated()
protected final java.nio.ByteBuffer buffer;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public void <init>(byte[], org.apache.http.entity.ContentType);
descriptor: ([BLorg/apache/http/entity/ContentType;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.apache.http.entity.AbstractHttpEntity.<init>:()V
1: aload 1
ldc "Source byte array"
invokestatic org.apache.http.util.Args.notNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
2: aload 0
aload 1
putfield org.apache.http.nio.entity.NByteArrayEntity.b:[B
3: aload 0
iconst_0
putfield org.apache.http.nio.entity.NByteArrayEntity.off:I
4: aload 0
aload 1
arraylength
putfield org.apache.http.nio.entity.NByteArrayEntity.len:I
5: aload 0
aload 1
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
putfield org.apache.http.nio.entity.NByteArrayEntity.buf:Ljava/nio/ByteBuffer;
6: aload 0
aload 1
putfield org.apache.http.nio.entity.NByteArrayEntity.content:[B
7: aload 0
aload 0
getfield org.apache.http.nio.entity.NByteArrayEntity.buf:Ljava/nio/ByteBuffer;
putfield org.apache.http.nio.entity.NByteArrayEntity.buffer:Ljava/nio/ByteBuffer;
8: aload 2
ifnull 10
9: aload 0
aload 2
invokevirtual org.apache.http.entity.ContentType.toString:()Ljava/lang/String;
invokevirtual org.apache.http.nio.entity.NByteArrayEntity.setContentType:(Ljava/lang/String;)V
10: StackMap locals: org.apache.http.nio.entity.NByteArrayEntity byte[] org.apache.http.entity.ContentType
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/http/nio/entity/NByteArrayEntity;
0 11 1 b [B
0 11 2 contentType Lorg/apache/http/entity/ContentType;
MethodParameters:
Name Flags
b final
contentType final
public void <init>(byte[], int, int, org.apache.http.entity.ContentType);
descriptor: ([BIILorg/apache/http/entity/ContentType;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial org.apache.http.entity.AbstractHttpEntity.<init>:()V
1: aload 1
ldc "Source byte array"
invokestatic org.apache.http.util.Args.notNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
2: iload 2
iflt 4
iload 2
aload 1
arraylength
if_icmpgt 4
iload 3
iflt 4
3: iload 2
iload 3
iadd
iflt 4
iload 2
iload 3
iadd
aload 1
arraylength
if_icmple 5
4: StackMap locals: org.apache.http.nio.entity.NByteArrayEntity byte[] int int org.apache.http.entity.ContentType
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
new java.lang.StringBuilder
dup
ldc "off: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " len: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " b.length: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.apache.http.nio.entity.NByteArrayEntity.b:[B
6: aload 0
iload 2
putfield org.apache.http.nio.entity.NByteArrayEntity.off:I
7: aload 0
iload 3
putfield org.apache.http.nio.entity.NByteArrayEntity.len:I
8: aload 0
aload 1
iload 2
iload 3
invokestatic java.nio.ByteBuffer.wrap:([BII)Ljava/nio/ByteBuffer;
putfield org.apache.http.nio.entity.NByteArrayEntity.buf:Ljava/nio/ByteBuffer;
9: aload 0
aload 1
putfield org.apache.http.nio.entity.NByteArrayEntity.content:[B
10: aload 0
aload 0
getfield org.apache.http.nio.entity.NByteArrayEntity.buf:Ljava/nio/ByteBuffer;
putfield org.apache.http.nio.entity.NByteArrayEntity.buffer:Ljava/nio/ByteBuffer;
11: aload 4
ifnull 13
12: aload 0
aload 4
invokevirtual org.apache.http.entity.ContentType.toString:()Ljava/lang/String;
invokevirtual org.apache.http.nio.entity.NByteArrayEntity.setContentType:(Ljava/lang/String;)V
13: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/apache/http/nio/entity/NByteArrayEntity;
0 14 1 b [B
0 14 2 off I
0 14 3 len I
0 14 4 contentType Lorg/apache/http/entity/ContentType;
MethodParameters:
Name Flags
b final
off final
len final
contentType final
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
invokespecial org.apache.http.nio.entity.NByteArrayEntity.<init>:([BLorg/apache/http/entity/ContentType;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/http/nio/entity/NByteArrayEntity;
0 2 1 b [B
MethodParameters:
Name Flags
b final
public void <init>(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
iload 3
aconst_null
invokespecial org.apache.http.nio.entity.NByteArrayEntity.<init>:([BIILorg/apache/http/entity/ContentType;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/http/nio/entity/NByteArrayEntity;
0 2 1 b [B
0 2 2 off I
0 2 3 len I
MethodParameters:
Name Flags
b final
off final
len final
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.http.nio.entity.NByteArrayEntity.buf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.rewind:()Ljava/nio/Buffer;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/http/nio/entity/NByteArrayEntity;
public void finish();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.http.nio.entity.NByteArrayEntity.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/http/nio/entity/NByteArrayEntity;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public void produceContent(org.apache.http.nio.ContentEncoder, org.apache.http.nio.IOControl);
descriptor: (Lorg/apache/http/nio/ContentEncoder;Lorg/apache/http/nio/IOControl;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 0
getfield org.apache.http.nio.entity.NByteArrayEntity.buf:Ljava/nio/ByteBuffer;
invokeinterface org.apache.http.nio.ContentEncoder.write:(Ljava/nio/ByteBuffer;)I
pop
1: aload 0
getfield org.apache.http.nio.entity.NByteArrayEntity.buf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 3
2: aload 1
invokeinterface org.apache.http.nio.ContentEncoder.complete:()V
3: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/http/nio/entity/NByteArrayEntity;
0 4 1 encoder Lorg/apache/http/nio/ContentEncoder;
0 4 2 ioControl Lorg/apache/http/nio/IOControl;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
encoder final
ioControl final
public long getContentLength();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.http.nio.entity.NByteArrayEntity.len:I
i2l
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/http/nio/entity/NByteArrayEntity;
public boolean isRepeatable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/http/nio/entity/NByteArrayEntity;
public boolean isStreaming();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/http/nio/entity/NByteArrayEntity;
public java.io.InputStream getContent();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new java.io.ByteArrayInputStream
dup
aload 0
getfield org.apache.http.nio.entity.NByteArrayEntity.b:[B
aload 0
getfield org.apache.http.nio.entity.NByteArrayEntity.off:I
aload 0
getfield org.apache.http.nio.entity.NByteArrayEntity.len:I
invokespecial java.io.ByteArrayInputStream.<init>:([BII)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/http/nio/entity/NByteArrayEntity;
public void writeTo(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "Output stream"
invokestatic org.apache.http.util.Args.notNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 1
aload 0
getfield org.apache.http.nio.entity.NByteArrayEntity.b:[B
aload 0
getfield org.apache.http.nio.entity.NByteArrayEntity.off:I
aload 0
getfield org.apache.http.nio.entity.NByteArrayEntity.len:I
invokevirtual java.io.OutputStream.write:([BII)V
2: aload 1
invokevirtual java.io.OutputStream.flush:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/http/nio/entity/NByteArrayEntity;
0 4 1 outStream Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
outStream final
}
SourceFile: "NByteArrayEntity.java"