public class org.apache.hc.core.http.io.entity.ByteBufferEntity extends org.apache.hc.core.http.io.entity.AbstractHttpEntity
{
private final java.nio.ByteBuffer buffer;
private final long length;
public void <init>(java.nio.ByteBuffer, org.apache.hc.core.http.ContentType, java.lang.String)
{
org.apache.hc.core.http.ContentType v;
int v;
java.lang.String v;
org.apache.hc.core.http.io.entity.ByteBufferEntity v;
java.nio.ByteBuffer v;
v := @this: org.apache.hc.core.http.io.entity.ByteBufferEntity;
v := @parameter: java.nio.ByteBuffer;
v := @parameter: org.apache.hc.core.http.ContentType;
v := @parameter: java.lang.String;
specialinvoke v.<org.apache.hc.core.http.io.entity.AbstractHttpEntity: void <init>(org.apache.hc.core.http.ContentType,java.lang.String)>(v, v);
staticinvoke <org.apache.hc.core.util.Args: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "Source byte buffer");
v.<org.apache.hc.core.http.io.entity.ByteBufferEntity: java.nio.ByteBuffer buffer> = v;
v = virtualinvoke v.<java.nio.ByteBuffer: int remaining()>();
v.<org.apache.hc.core.http.io.entity.ByteBufferEntity: long length> = v;
return;
}
public void <init>(java.nio.ByteBuffer, org.apache.hc.core.http.ContentType)
{
org.apache.hc.core.http.io.entity.ByteBufferEntity v;
java.nio.ByteBuffer v;
org.apache.hc.core.http.ContentType v;
v := @this: org.apache.hc.core.http.io.entity.ByteBufferEntity;
v := @parameter: java.nio.ByteBuffer;
v := @parameter: org.apache.hc.core.http.ContentType;
specialinvoke v.<org.apache.hc.core.http.io.entity.ByteBufferEntity: void <init>(java.nio.ByteBuffer,org.apache.hc.core.http.ContentType,java.lang.String)>(v, v, null);
return;
}
public final boolean isRepeatable()
{
org.apache.hc.core.http.io.entity.ByteBufferEntity v;
v := @this: org.apache.hc.core.http.io.entity.ByteBufferEntity;
return 0;
}
public final long getContentLength()
{
long v;
org.apache.hc.core.http.io.entity.ByteBufferEntity v;
v := @this: org.apache.hc.core.http.io.entity.ByteBufferEntity;
v = v.<org.apache.hc.core.http.io.entity.ByteBufferEntity: long length>;
return v;
}
public final java.io.InputStream getContent() throws java.io.IOException, java.lang.UnsupportedOperationException
{
org.apache.hc.core.http.io.entity.ByteBufferEntity$1 v;
org.apache.hc.core.http.io.entity.ByteBufferEntity v;
v := @this: org.apache.hc.core.http.io.entity.ByteBufferEntity;
v = new org.apache.hc.core.http.io.entity.ByteBufferEntity$1;
specialinvoke v.<org.apache.hc.core.http.io.entity.ByteBufferEntity$1: void <init>(org.apache.hc.core.http.io.entity.ByteBufferEntity)>(v);
return v;
}
public final boolean isStreaming()
{
org.apache.hc.core.http.io.entity.ByteBufferEntity v;
v := @this: org.apache.hc.core.http.io.entity.ByteBufferEntity;
return 0;
}
public final void close() throws java.io.IOException
{
org.apache.hc.core.http.io.entity.ByteBufferEntity v;
v := @this: org.apache.hc.core.http.io.entity.ByteBufferEntity;
return;
}
}