DataBufferPOATie.java 1.57 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.service;

import com.adobe.service.DataBuffer;
import com.adobe.service.DataBufferHelper;
import com.adobe.service.DataBufferOperations;
import com.adobe.service.DataBufferPOA;
import org.omg.CORBA.ORB;
import org.omg.PortableServer.POA;

public class DataBufferPOATie
extends DataBufferPOA {
    private DataBufferOperations _delegate;
    private POA _poa;

    public DataBufferPOATie(DataBufferOperations delegate) {
        this._delegate = delegate;
    }

    public DataBufferPOATie(DataBufferOperations delegate, POA poa) {
        this._delegate = delegate;
        this._poa = poa;
    }

    public DataBuffer _this() {
        return DataBufferHelper.narrow(this._this_object());
    }

    public DataBuffer _this(ORB orb) {
        return DataBufferHelper.narrow(this._this_object(orb));
    }

    public DataBufferOperations _delegate() {
        return this._delegate;
    }

    public void _delegate(DataBufferOperations delegate) {
        this._delegate = delegate;
    }

    public POA _default_POA() {
        if (this._poa != null) {
            return this._poa;
        }
        return super._default_POA();
    }

    public String getContentType() {
        return this._delegate.getContentType();
    }

    public void setContentType(String contentType) {
        this._delegate.setContentType(contentType);
    }

    public byte[] getBytes(long pos, long nBytes) {
        return this._delegate.getBytes(pos, nBytes);
    }

    public long getBufLength() {
        return this._delegate.getBufLength();
    }
}