public abstract class org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer extends org.apache.hc.core.http.nio.entity.AbstractBinDataConsumer implements org.apache.hc.core.http.nio.AsyncEntityConsumer
{
private volatile org.apache.hc.core.concurrent.FutureCallback resultCallback;
private volatile java.lang.Object content;
public void <init>()
{
org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer v;
v := @this: org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer;
specialinvoke v.<org.apache.hc.core.http.nio.entity.AbstractBinDataConsumer: void <init>()>();
return;
}
protected abstract void streamStart(org.apache.hc.core.http.ContentType) throws org.apache.hc.core.http.HttpException, java.io.IOException;
protected abstract java.lang.Object generateContent() throws java.io.IOException;
public final void streamStart(org.apache.hc.core.http.EntityDetails, org.apache.hc.core.concurrent.FutureCallback) throws java.io.IOException, org.apache.hc.core.http.HttpException
{
org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer v;
org.apache.hc.core.http.EntityDetails v;
org.apache.hc.core.http.ContentType v;
org.apache.hc.core.concurrent.FutureCallback v;
java.lang.String v, v;
java.nio.charset.UnsupportedCharsetException v;
java.io.UnsupportedEncodingException v;
v := @this: org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer;
v := @parameter: org.apache.hc.core.http.EntityDetails;
v := @parameter: org.apache.hc.core.concurrent.FutureCallback;
staticinvoke <org.apache.hc.core.util.Args: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "Result callback");
v.<org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer: org.apache.hc.core.concurrent.FutureCallback resultCallback> = v;
label:
if v == null goto label;
v = interfaceinvoke v.<org.apache.hc.core.http.EntityDetails: java.lang.String getContentType()>();
v = staticinvoke <org.apache.hc.core.http.ContentType: org.apache.hc.core.http.ContentType parse(java.lang.CharSequence)>(v);
goto label;
label:
v = null;
label:
virtualinvoke v.<org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer: void streamStart(org.apache.hc.core.http.ContentType)>(v);
label:
goto label;
label:
v := @caughtexception;
v = new java.io.UnsupportedEncodingException;
v = virtualinvoke v.<java.nio.charset.UnsupportedCharsetException: java.lang.String getMessage()>();
specialinvoke v.<java.io.UnsupportedEncodingException: void <init>(java.lang.String)>(v);
throw v;
label:
return;
catch java.nio.charset.UnsupportedCharsetException from label to label with label;
}
protected final void completed() throws java.io.IOException
{
org.apache.hc.core.concurrent.FutureCallback v, v;
java.lang.Object v, v;
org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer v;
v := @this: org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer;
v = virtualinvoke v.<org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer: java.lang.Object generateContent()>();
v.<org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer: java.lang.Object content> = v;
v = v.<org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer: org.apache.hc.core.concurrent.FutureCallback resultCallback>;
if v == null goto label;
v = v.<org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer: org.apache.hc.core.concurrent.FutureCallback resultCallback>;
v = v.<org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer: java.lang.Object content>;
interfaceinvoke v.<org.apache.hc.core.concurrent.FutureCallback: void completed(java.lang.Object)>(v);
label:
virtualinvoke v.<org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer: void releaseResources()>();
return;
}
public final void failed(java.lang.Exception)
{
org.apache.hc.core.concurrent.FutureCallback v, v;
org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer v;
java.lang.Exception v;
v := @this: org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer;
v := @parameter: java.lang.Exception;
v = v.<org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer: org.apache.hc.core.concurrent.FutureCallback resultCallback>;
if v == null goto label;
v = v.<org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer: org.apache.hc.core.concurrent.FutureCallback resultCallback>;
interfaceinvoke v.<org.apache.hc.core.concurrent.FutureCallback: void failed(java.lang.Exception)>(v);
label:
virtualinvoke v.<org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer: void releaseResources()>();
return;
}
public final java.lang.Object getContent()
{
java.lang.Object v;
org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer v;
v := @this: org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer;
v = v.<org.apache.hc.core.http.nio.entity.AbstractBinAsyncEntityConsumer: java.lang.Object content>;
return v;
}
}