Html2PdfFontPathsHelper.java 3.02 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.html2pdf;

import com.adobe.html2pdf.Html2PdfFontPaths;
import org.omg.CORBA.Any;
import org.omg.CORBA.ORB;
import org.omg.CORBA.StructMember;
import org.omg.CORBA.TypeCode;
import org.omg.CORBA.portable.InputStream;
import org.omg.CORBA.portable.OutputStream;

public abstract class Html2PdfFontPathsHelper {
    private static String _id = "IDL:com/adobe/html2pdf/Html2PdfFontPaths:1.0";
    private static TypeCode __typeCode = null;
    private static boolean __active = false;

    public static void insert(Any a, Html2PdfFontPaths that) {
        OutputStream out = a.create_output_stream();
        a.type(Html2PdfFontPathsHelper.type());
        Html2PdfFontPathsHelper.write(out, that);
        a.read_value(out.create_input_stream(), Html2PdfFontPathsHelper.type());
    }

    public static Html2PdfFontPaths extract(Any a) {
        return Html2PdfFontPathsHelper.read(a.create_input_stream());
    }

    /*
     * WARNING - Removed try catching itself - possible behaviour change.
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public static synchronized TypeCode type() {
        if (__typeCode != null) return __typeCode;
        Class<TypeCode> class_ = TypeCode.class;
        synchronized (TypeCode.class) {
            if (__typeCode != null) return __typeCode;
            {
                if (__active) {
                    // ** MonitorExit[var0] (shouldn't be in output)
                    return ORB.init().create_recursive_tc(_id);
                }
                __active = true;
                StructMember[] _members0 = new StructMember[3];
                TypeCode _tcOf_members0 = null;
                _tcOf_members0 = ORB.init().create_wstring_tc(0);
                _members0[0] = new StructMember("customerFontPath", _tcOf_members0, null);
                _tcOf_members0 = ORB.init().create_wstring_tc(0);
                _members0[1] = new StructMember("adobeFontPath", _tcOf_members0, null);
                _tcOf_members0 = ORB.init().create_wstring_tc(0);
                _members0[2] = new StructMember("systemFontPath", _tcOf_members0, null);
                __typeCode = ORB.init().create_struct_tc(Html2PdfFontPathsHelper.id(), "Html2PdfFontPaths", _members0);
                __active = false;
            }
            // ** MonitorExit[var0] (shouldn't be in output)
            return __typeCode;
        }
    }

    public static String id() {
        return _id;
    }

    public static Html2PdfFontPaths read(InputStream istream) {
        Html2PdfFontPaths value = new Html2PdfFontPaths();
        value.customerFontPath = istream.read_wstring();
        value.adobeFontPath = istream.read_wstring();
        value.systemFontPath = istream.read_wstring();
        return value;
    }

    public static void write(OutputStream ostream, Html2PdfFontPaths value) {
        ostream.write_wstring(value.customerFontPath);
        ostream.write_wstring(value.adobeFontPath);
        ostream.write_wstring(value.systemFontPath);
    }
}