BufDataHolder.java 729 Bytes
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.service;

import com.adobe.service.BufDataHelper;
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 BufDataHolder
implements Streamable {
    public byte[] value;

    public BufDataHolder() {
    }

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

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

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

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