ByteArrayHolder.java 768 Bytes
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.native2pdf.bmc;

import com.adobe.native2pdf.bmc.ByteArrayHelper;
import org.omg.CORBA.TypeCode;
import org.omg.CORBA.portable.InputStream;
import org.omg.CORBA.portable.OutputStream;
import org.omg.CORBA.portable.Streamable;

public final class ByteArrayHolder
implements Streamable {
    public byte[] value = null;

    public ByteArrayHolder() {
    }

    public ByteArrayHolder(byte[] initialValue) {
        this.value = initialValue;
    }

    public void _read(InputStream i) {
        this.value = ByteArrayHelper.read(i);
    }

    public void _write(OutputStream o) {
        ByteArrayHelper.write(o, this.value);
    }

    public TypeCode _type() {
        return ByteArrayHelper.type();
    }
}