public abstract class org.apache.hc.client.http.entity.mime.AbstractContentBody extends java.lang.Object implements org.apache.hc.client.http.entity.mime.ContentBody
{
private final org.apache.hc.core.http.ContentType contentType;
public void <init>(org.apache.hc.core.http.ContentType)
{
org.apache.hc.client.http.entity.mime.AbstractContentBody v;
org.apache.hc.core.http.ContentType v;
v := @this: org.apache.hc.client.http.entity.mime.AbstractContentBody;
v := @parameter: org.apache.hc.core.http.ContentType;
specialinvoke v.<java.lang.Object: void <init>()>();
staticinvoke <org.apache.hc.core.util.Args: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "Content type");
v.<org.apache.hc.client.http.entity.mime.AbstractContentBody: org.apache.hc.core.http.ContentType contentType> = v;
return;
}
public org.apache.hc.core.http.ContentType getContentType()
{
org.apache.hc.client.http.entity.mime.AbstractContentBody v;
org.apache.hc.core.http.ContentType v;
v := @this: org.apache.hc.client.http.entity.mime.AbstractContentBody;
v = v.<org.apache.hc.client.http.entity.mime.AbstractContentBody: org.apache.hc.core.http.ContentType contentType>;
return v;
}
public java.lang.String getMimeType()
{
java.lang.String v;
org.apache.hc.client.http.entity.mime.AbstractContentBody v;
org.apache.hc.core.http.ContentType v;
v := @this: org.apache.hc.client.http.entity.mime.AbstractContentBody;
v = v.<org.apache.hc.client.http.entity.mime.AbstractContentBody: org.apache.hc.core.http.ContentType contentType>;
v = virtualinvoke v.<org.apache.hc.core.http.ContentType: java.lang.String getMimeType()>();
return v;
}
public java.lang.String getMediaType()
{
org.apache.hc.core.http.ContentType v;
int v, v;
java.lang.String v, v;
org.apache.hc.client.http.entity.mime.AbstractContentBody v;
v := @this: org.apache.hc.client.http.entity.mime.AbstractContentBody;
v = v.<org.apache.hc.client.http.entity.mime.AbstractContentBody: org.apache.hc.core.http.ContentType contentType>;
v = virtualinvoke v.<org.apache.hc.core.http.ContentType: java.lang.String getMimeType()>();
v = virtualinvoke v.<java.lang.String: int indexOf(int)>(47);
v = (int) -1;
if v == v goto label;
v = virtualinvoke v.<java.lang.String: java.lang.String substring(int,int)>(0, v);
return v;
label:
return v;
}
public java.lang.String getSubType()
{
org.apache.hc.core.http.ContentType v;
int v, v, v;
java.lang.String v, v;
org.apache.hc.client.http.entity.mime.AbstractContentBody v;
v := @this: org.apache.hc.client.http.entity.mime.AbstractContentBody;
v = v.<org.apache.hc.client.http.entity.mime.AbstractContentBody: org.apache.hc.core.http.ContentType contentType>;
v = virtualinvoke v.<org.apache.hc.core.http.ContentType: java.lang.String getMimeType()>();
v = virtualinvoke v.<java.lang.String: int indexOf(int)>(47);
v = (int) -1;
if v == v goto label;
v = v + 1;
v = virtualinvoke v.<java.lang.String: java.lang.String substring(int)>(v);
return v;
label:
return null;
}
public java.lang.String getCharset()
{
java.nio.charset.Charset v;
org.apache.hc.core.http.ContentType v;
java.lang.String v;
org.apache.hc.client.http.entity.mime.AbstractContentBody v;
v := @this: org.apache.hc.client.http.entity.mime.AbstractContentBody;
v = v.<org.apache.hc.client.http.entity.mime.AbstractContentBody: org.apache.hc.core.http.ContentType contentType>;
v = virtualinvoke v.<org.apache.hc.core.http.ContentType: java.nio.charset.Charset getCharset()>();
if v == null goto label;
v = virtualinvoke v.<java.nio.charset.Charset: java.lang.String name()>();
goto label;
label:
v = null;
label:
return v;
}
}