_FileDataBufferStub.java 10.1 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.service;

import com.adobe.service.BufDataHelper;
import com.adobe.service.FileDataBuffer;
import com.adobe.service.FileDataBufferOperations;
import org.omg.CORBA.UNKNOWN;
import org.omg.CORBA.portable.*;

public class _FileDataBufferStub
extends ObjectImpl
implements FileDataBuffer {
    private String[] ids = new String[]{"IDL:com/adobe/service/FileDataBuffer:1.0", "IDL:com/adobe/service/DataBuffer:1.0"};
    public static final Class _opsClass = FileDataBufferOperations.class;

    public String[] _ids() {
        return this.ids;
    }

    /*
     * WARNING - Removed try catching itself - possible behaviour change.
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     */
    public String getContentType() {
        while (!this._is_local()) {
            Object var6_6;
            InputStream _is = null;
            try {
                String string;
                try {
                    String _result;
                    OutputStream _os = this._request("getContentType", true);
                    _is = this._invoke(_os);
                    string = _result = _is.read_string();
                    var6_6 = null;
                }
                catch (RemarshalException _rx) {
                    var6_6 = null;
                    this._releaseReply(_is);
                    continue;
                }
                catch (ApplicationException _ax) {
                    String _id = _ax.getId();
                    throw new RuntimeException("Unexpected exception " + _id);
                }
                this._releaseReply(_is);
                return string;
            }
            catch (Throwable var5_11) {
                var6_6 = null;
                this._releaseReply(_is);
                throw var5_11;
            }
        }
        ServantObject _so = this._servant_preinvoke("getContentType", _opsClass);
        if (_so == null) {
            throw new UNKNOWN("local invocations not supported!");
        }
        FileDataBufferOperations _localServant = (FileDataBufferOperations)_so.servant;
        try {
            String _result = _localServant.getContentType();
            Object var8_12 = null;
            this._servant_postinvoke(_so);
            return _result;
        }
        catch (Throwable var7_14) {
            Object var8_13 = null;
            this._servant_postinvoke(_so);
            throw var7_14;
        }
    }

    /*
     * WARNING - Removed try catching itself - possible behaviour change.
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     */
    public void setContentType(String contentType) {
        while (!this._is_local()) {
            Object var6_7;
            InputStream _is = null;
            try {
                try {
                    OutputStream _os = this._request("setContentType", true);
                    _os.write_string(contentType);
                    _is = this._invoke(_os);
                    var6_7 = null;
                    this._releaseReply(_is);
                    return;
                }
                catch (RemarshalException _rx) {
                    var6_7 = null;
                    this._releaseReply(_is);
                    continue;
                }
                catch (ApplicationException _ax) {
                    String _id = _ax.getId();
                    throw new RuntimeException("Unexpected exception " + _id);
                }
            }
            catch (Throwable var5_9) {
                var6_7 = null;
                this._releaseReply(_is);
                throw var5_9;
            }
        }
        ServantObject _so = this._servant_preinvoke("setContentType", _opsClass);
        if (_so == null) {
            throw new UNKNOWN("local invocations not supported!");
        }
        FileDataBufferOperations _localServant = (FileDataBufferOperations)_so.servant;
        try {
            _localServant.setContentType(contentType);
            Object var8_10 = null;
            this._servant_postinvoke(_so);
            return;
        }
        catch (Throwable var7_12) {
            Object var8_11 = null;
            this._servant_postinvoke(_so);
            throw var7_12;
        }
    }

    /*
     * WARNING - Removed try catching itself - possible behaviour change.
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     */
    public byte[] getBytes(long pos, long nBytes) {
        while (!this._is_local()) {
            Object var10_8;
            InputStream _is = null;
            try {
                byte[] arrby;
                try {
                    byte[] _result;
                    OutputStream _os = this._request("getBytes", true);
                    _os.write_longlong(pos);
                    _os.write_longlong(nBytes);
                    _is = this._invoke(_os);
                    arrby = _result = BufDataHelper.read(_is);
                    var10_8 = null;
                }
                catch (RemarshalException _rx) {
                    var10_8 = null;
                    this._releaseReply(_is);
                    continue;
                }
                catch (ApplicationException _ax) {
                    String _id = _ax.getId();
                    throw new RuntimeException("Unexpected exception " + _id);
                }
                this._releaseReply(_is);
                return arrby;
            }
            catch (Throwable var9_13) {
                var10_8 = null;
                this._releaseReply(_is);
                throw var9_13;
            }
        }
        ServantObject _so = this._servant_preinvoke("getBytes", _opsClass);
        if (_so == null) {
            throw new UNKNOWN("local invocations not supported!");
        }
        FileDataBufferOperations _localServant = (FileDataBufferOperations)_so.servant;
        try {
            byte[] _result = _localServant.getBytes(pos, nBytes);
            Object var12_14 = null;
            this._servant_postinvoke(_so);
            return _result;
        }
        catch (Throwable var11_16) {
            Object var12_15 = null;
            this._servant_postinvoke(_so);
            throw var11_16;
        }
    }

    /*
     * WARNING - Removed try catching itself - possible behaviour change.
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     */
    public String getFilePath() {
        while (!this._is_local()) {
            Object var6_6;
            InputStream _is = null;
            try {
                String string;
                try {
                    String _result;
                    OutputStream _os = this._request("getFilePath", true);
                    _is = this._invoke(_os);
                    string = _result = _is.read_wstring();
                    var6_6 = null;
                }
                catch (RemarshalException _rx) {
                    var6_6 = null;
                    this._releaseReply(_is);
                    continue;
                }
                catch (ApplicationException _ax) {
                    String _id = _ax.getId();
                    throw new RuntimeException("Unexpected exception " + _id);
                }
                this._releaseReply(_is);
                return string;
            }
            catch (Throwable var5_11) {
                var6_6 = null;
                this._releaseReply(_is);
                throw var5_11;
            }
        }
        ServantObject _so = this._servant_preinvoke("getFilePath", _opsClass);
        if (_so == null) {
            throw new UNKNOWN("local invocations not supported!");
        }
        FileDataBufferOperations _localServant = (FileDataBufferOperations)_so.servant;
        try {
            String _result = _localServant.getFilePath();
            Object var8_12 = null;
            this._servant_postinvoke(_so);
            return _result;
        }
        catch (Throwable var7_14) {
            Object var8_13 = null;
            this._servant_postinvoke(_so);
            throw var7_14;
        }
    }

    /*
     * WARNING - Removed try catching itself - possible behaviour change.
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     */
    public long getBufLength() {
        while (!this._is_local()) {
            Object var8_6;
            InputStream _is = null;
            try {
                long l;
                try {
                    long _result;
                    OutputStream _os = this._request("getBufLength", true);
                    _is = this._invoke(_os);
                    l = _result = _is.read_longlong();
                    var8_6 = null;
                }
                catch (RemarshalException _rx) {
                    var8_6 = null;
                    this._releaseReply(_is);
                    continue;
                }
                catch (ApplicationException _ax) {
                    String _id = _ax.getId();
                    throw new RuntimeException("Unexpected exception " + _id);
                }
                this._releaseReply(_is);
                return l;
            }
            catch (Throwable var7_11) {
                var8_6 = null;
                this._releaseReply(_is);
                throw var7_11;
            }
        }
        ServantObject _so = this._servant_preinvoke("getBufLength", _opsClass);
        if (_so == null) {
            throw new UNKNOWN("local invocations not supported!");
        }
        FileDataBufferOperations _localServant = (FileDataBufferOperations)_so.servant;
        try {
            long _result = _localServant.getBufLength();
            Object var10_12 = null;
            this._servant_postinvoke(_so);
            return _result;
        }
        catch (Throwable var9_14) {
            Object var10_13 = null;
            this._servant_postinvoke(_so);
            throw var9_14;
        }
    }
}