ByteArrayHolder.java 759 Bytes
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.xmlformcallback;

import com.adobe.xmlformcallback.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;

    public ByteArrayHolder() {
    }

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

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

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

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