public class org.apache.axiom.om.ds.custombuilder.ByteArrayCustomBuilder extends java.lang.Object implements org.apache.axiom.om.ds.custombuilder.CustomBuilder
{
private java.lang.String encoding;
public void <init>(java.lang.String)
{
org.apache.axiom.om.ds.custombuilder.ByteArrayCustomBuilder v;
java.lang.String v, v;
v := @this: org.apache.axiom.om.ds.custombuilder.ByteArrayCustomBuilder;
v := @parameter: java.lang.String;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<org.apache.axiom.om.ds.custombuilder.ByteArrayCustomBuilder: java.lang.String encoding> = null;
if v != null goto label;
v = "utf-8";
goto label;
label:
v = v;
label:
v.<org.apache.axiom.om.ds.custombuilder.ByteArrayCustomBuilder: java.lang.String encoding> = v;
return;
}
public org.apache.axiom.om.OMDataSource create(org.apache.axiom.om.OMElement) throws org.apache.axiom.om.OMException
{
java.lang.Throwable v, v;
org.apache.axiom.om.OMElement v;
byte[] v;
org.apache.axiom.om.ds.ByteArrayDataSource v;
java.io.ByteArrayOutputStream v;
org.apache.axiom.om.ds.custombuilder.ByteArrayCustomBuilder v;
org.apache.axiom.om.OMException v, v;
javax.xml.stream.XMLStreamException v;
java.lang.String v;
v := @this: org.apache.axiom.om.ds.custombuilder.ByteArrayCustomBuilder;
v := @parameter: org.apache.axiom.om.OMElement;
label:
v = new java.io.ByteArrayOutputStream;
specialinvoke v.<java.io.ByteArrayOutputStream: void <init>()>();
interfaceinvoke v.<org.apache.axiom.om.OMElement: void serializeAndConsume(java.io.OutputStream)>(v);
v = virtualinvoke v.<java.io.ByteArrayOutputStream: byte[] toByteArray()>();
v = new org.apache.axiom.om.ds.ByteArrayDataSource;
v = v.<org.apache.axiom.om.ds.custombuilder.ByteArrayCustomBuilder: java.lang.String encoding>;
specialinvoke v.<org.apache.axiom.om.ds.ByteArrayDataSource: void <init>(byte[],java.lang.String)>(v, v);
label:
return v;
label:
v := @caughtexception;
v = new org.apache.axiom.om.OMException;
specialinvoke v.<org.apache.axiom.om.OMException: void <init>(java.lang.Throwable)>(v);
throw v;
label:
v := @caughtexception;
throw v;
label:
v := @caughtexception;
v = new org.apache.axiom.om.OMException;
specialinvoke v.<org.apache.axiom.om.OMException: void <init>(java.lang.Throwable)>(v);
throw v;
catch javax.xml.stream.XMLStreamException from label to label with label;
catch org.apache.axiom.om.OMException from label to label with label;
catch java.lang.Throwable from label to label with label;
}
}