PsToPdfFilePathsHelper.java 2.41 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.ps2pdf;

import com.adobe.ps2pdf.PsToPdfFilePaths;
import org.omg.CORBA.Any;
import org.omg.CORBA.IDLType;
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 final class PsToPdfFilePathsHelper {
    private static TypeCode _type = null;

    public static TypeCode type() {
        if (_type == null) {
            _type = ORB.init().create_struct_tc(PsToPdfFilePathsHelper.id(), "PsToPdfFilePaths", new StructMember[]{new StructMember("psFilePath", ORB.init().create_wstring_tc(0), null), new StructMember("settingsFilePath", ORB.init().create_wstring_tc(0), null), new StructMember("pdfFilePath", ORB.init().create_wstring_tc(0), null), new StructMember("jdfFilePath", ORB.init().create_wstring_tc(0), null), new StructMember("logFilePath", ORB.init().create_wstring_tc(0), null), new StructMember("prologueFilePath", ORB.init().create_wstring_tc(0), null), new StructMember("epilogueFilePath", ORB.init().create_wstring_tc(0), null)});
        }
        return _type;
    }

    public static void insert(Any any, PsToPdfFilePaths s) {
        any.type(PsToPdfFilePathsHelper.type());
        PsToPdfFilePathsHelper.write(any.create_output_stream(), s);
    }

    public static PsToPdfFilePaths extract(Any any) {
        return PsToPdfFilePathsHelper.read(any.create_input_stream());
    }

    public static String id() {
        return "IDL:com/adobe/ps2pdf/PsToPdfFilePaths:1.0";
    }

    public static PsToPdfFilePaths read(InputStream in) {
        PsToPdfFilePaths result = new PsToPdfFilePaths();
        result.psFilePath = in.read_wstring();
        result.settingsFilePath = in.read_wstring();
        result.pdfFilePath = in.read_wstring();
        result.jdfFilePath = in.read_wstring();
        result.logFilePath = in.read_wstring();
        result.prologueFilePath = in.read_wstring();
        result.epilogueFilePath = in.read_wstring();
        return result;
    }

    public static void write(OutputStream out, PsToPdfFilePaths s) {
        out.write_wstring(s.psFilePath);
        out.write_wstring(s.settingsFilePath);
        out.write_wstring(s.pdfFilePath);
        out.write_wstring(s.jdfFilePath);
        out.write_wstring(s.logFilePath);
        out.write_wstring(s.prologueFilePath);
        out.write_wstring(s.epilogueFilePath);
    }
}