JdkLogEntrySeqHelper.java 1.6 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.service.ManagerPackage;

import com.adobe.service.ManagerPackage.JdkLogEntry;
import com.adobe.service.ManagerPackage.JdkLogEntryHelper;
import org.omg.CORBA.Any;
import org.omg.CORBA.ORB;
import org.omg.CORBA.TypeCode;
import org.omg.CORBA.portable.InputStream;
import org.omg.CORBA.portable.OutputStream;

public final class JdkLogEntrySeqHelper {
    private static TypeCode _type = null;

    public static void insert(Any any, JdkLogEntry[] s) {
        any.type(JdkLogEntrySeqHelper.type());
        JdkLogEntrySeqHelper.write(any.create_output_stream(), s);
    }

    public static JdkLogEntry[] extract(Any any) {
        return JdkLogEntrySeqHelper.read(any.create_input_stream());
    }

    public static TypeCode type() {
        if (_type == null) {
            _type = ORB.init().create_alias_tc(JdkLogEntrySeqHelper.id(), "JdkLogEntrySeq", ORB.init().create_sequence_tc(0, JdkLogEntryHelper.type()));
        }
        return _type;
    }

    public static String id() {
        return "IDL:com/adobe/service/Manager/JdkLogEntrySeq:1.0";
    }

    public static JdkLogEntry[] read(InputStream _in) {
        int _l_result2 = _in.read_long();
        JdkLogEntry[] _result = new JdkLogEntry[_l_result2];
        for (int i = 0; i < _result.length; ++i) {
            _result[i] = JdkLogEntryHelper.read(_in);
        }
        return _result;
    }

    public static void write(OutputStream _out, JdkLogEntry[] _s) {
        _out.write_long(_s.length);
        for (int i = 0; i < _s.length; ++i) {
            JdkLogEntryHelper.write(_out, _s[i]);
        }
    }
}