public class org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer extends org.apache.hc.core.http.nio.entity.AbstractCharAsyncEntityConsumer
{
private final int capacityIncrement;
private final org.apache.hc.core.util.CharArrayBuffer content;
public void <init>(int, int, org.apache.hc.core.http.config.CharCodingConfig)
{
org.apache.hc.core.util.CharArrayBuffer v;
org.apache.hc.core.http.config.CharCodingConfig v;
int v, v, v;
org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer v;
v := @this: org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer;
v := @parameter: int;
v := @parameter: int;
v := @parameter: org.apache.hc.core.http.config.CharCodingConfig;
specialinvoke v.<org.apache.hc.core.http.nio.entity.AbstractCharAsyncEntityConsumer: void <init>(int,org.apache.hc.core.http.config.CharCodingConfig)>(v, v);
v = staticinvoke <org.apache.hc.core.util.Args: int positive(int,java.lang.String)>(v, "Capacity increment");
v.<org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer: int capacityIncrement> = v;
v = new org.apache.hc.core.util.CharArrayBuffer;
specialinvoke v.<org.apache.hc.core.util.CharArrayBuffer: void <init>(int)>(1024);
v.<org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer: org.apache.hc.core.util.CharArrayBuffer content> = v;
return;
}
public void <init>(int)
{
int v;
org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer v;
org.apache.hc.core.http.config.CharCodingConfig v;
v := @this: org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer;
v := @parameter: int;
v = <org.apache.hc.core.http.config.CharCodingConfig: org.apache.hc.core.http.config.CharCodingConfig DEFAULT>;
specialinvoke v.<org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer: void <init>(int,int,org.apache.hc.core.http.config.CharCodingConfig)>(8192, v, v);
return;
}
public void <init>(org.apache.hc.core.http.config.CharCodingConfig)
{
org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer v;
org.apache.hc.core.http.config.CharCodingConfig v;
v := @this: org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer;
v := @parameter: org.apache.hc.core.http.config.CharCodingConfig;
specialinvoke v.<org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer: void <init>(int,int,org.apache.hc.core.http.config.CharCodingConfig)>(8192, 2147483647, v);
return;
}
public void <init>()
{
org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer v;
v := @this: org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer;
specialinvoke v.<org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer: void <init>(int)>(2147483647);
return;
}
protected final void streamStart(org.apache.hc.core.http.ContentType) throws org.apache.hc.core.http.HttpException, java.io.IOException
{
org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer v;
org.apache.hc.core.http.ContentType v;
v := @this: org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer;
v := @parameter: org.apache.hc.core.http.ContentType;
return;
}
protected int capacityIncrement()
{
int v;
org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer v;
v := @this: org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer;
v = v.<org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer: int capacityIncrement>;
return v;
}
protected final void data(java.nio.CharBuffer, boolean)
{
java.nio.CharBuffer v;
org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer v;
org.apache.hc.core.util.CharArrayBuffer v, v, v, v, v;
int v, v, v, v;
char[] v;
boolean v;
v := @this: org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer;
v := @parameter: java.nio.CharBuffer;
v := @parameter: boolean;
staticinvoke <org.apache.hc.core.util.Args: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "CharBuffer");
v = virtualinvoke v.<java.nio.CharBuffer: int remaining()>();
v = v.<org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer: org.apache.hc.core.util.CharArrayBuffer content>;
virtualinvoke v.<org.apache.hc.core.util.CharArrayBuffer: void ensureCapacity(int)>(v);
v = v.<org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer: org.apache.hc.core.util.CharArrayBuffer content>;
v = virtualinvoke v.<org.apache.hc.core.util.CharArrayBuffer: char[] array()>();
v = v.<org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer: org.apache.hc.core.util.CharArrayBuffer content>;
v = virtualinvoke v.<org.apache.hc.core.util.CharArrayBuffer: int length()>();
virtualinvoke v.<java.nio.CharBuffer: java.nio.CharBuffer get(char[],int,int)>(v, v, v);
v = v.<org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer: org.apache.hc.core.util.CharArrayBuffer content>;
v = v.<org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer: org.apache.hc.core.util.CharArrayBuffer content>;
v = virtualinvoke v.<org.apache.hc.core.util.CharArrayBuffer: int length()>();
v = v + v;
virtualinvoke v.<org.apache.hc.core.util.CharArrayBuffer: void setLength(int)>(v);
return;
}
public java.lang.String generateContent()
{
java.lang.String v;
org.apache.hc.core.util.CharArrayBuffer v;
org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer v;
v := @this: org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer;
v = v.<org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer: org.apache.hc.core.util.CharArrayBuffer content>;
v = virtualinvoke v.<org.apache.hc.core.util.CharArrayBuffer: java.lang.String toString()>();
return v;
}
public void releaseResources()
{
org.apache.hc.core.util.CharArrayBuffer v;
org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer v;
v := @this: org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer;
v = v.<org.apache.hc.core.http.nio.entity.StringAsyncEntityConsumer: org.apache.hc.core.util.CharArrayBuffer content>;
virtualinvoke v.<org.apache.hc.core.util.CharArrayBuffer: void clear()>();
return;
}
}