_PsToPdfServiceStub.java
6.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.ps2pdf;
import com.adobe.ps2pdf.AvailableFontsHelper;
import com.adobe.ps2pdf.FontsInFolder;
import com.adobe.ps2pdf.PsToPdfFailureException;
import com.adobe.ps2pdf.PsToPdfFailureExceptionHelper;
import com.adobe.ps2pdf.PsToPdfFilePaths;
import com.adobe.ps2pdf.PsToPdfFilePathsHelper;
import com.adobe.ps2pdf.PsToPdfFontPaths;
import com.adobe.ps2pdf.PsToPdfFontPathsHelper;
import com.adobe.ps2pdf.PsToPdfService;
import com.adobe.ps2pdf.PsToPdfServiceOperations;
import org.omg.CORBA.UNKNOWN;
import org.omg.CORBA.portable.ApplicationException;
import org.omg.CORBA.portable.InputStream;
import org.omg.CORBA.portable.ObjectImpl;
import org.omg.CORBA.portable.OutputStream;
import org.omg.CORBA.portable.RemarshalException;
import org.omg.CORBA.portable.ServantObject;
public class _PsToPdfServiceStub
extends ObjectImpl
implements PsToPdfService {
private String[] ids = new String[]{"IDL:com/adobe/ps2pdf/PsToPdfService:1.0"};
public static final Class _opsClass = PsToPdfServiceOperations.class;
public String[] _ids() {
return this.ids;
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
* Loose catch block
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
* Lifted jumps to return sites
*/
public void convertToPdf(PsToPdfFilePaths filePaths, PsToPdfFontPaths fontPaths, boolean bUsePrologue, long timeout) throws PsToPdfFailureException {
while (!this._is_local()) {
InputStream _is = null;
try {
OutputStream _os = this._request("convertToPdf", true);
PsToPdfFilePathsHelper.write(_os, filePaths);
PsToPdfFontPathsHelper.write(_os, fontPaths);
_os.write_boolean(bUsePrologue);
_os.write_longlong(timeout);
_is = this._invoke(_os);
return;
}
catch (RemarshalException _rx) {}
continue;
catch (ApplicationException _ax) {
String _id = _ax.getId();
if (!_id.equals("IDL:com/adobe/ps2pdf/PsToPdfFailureException:1.0")) throw new RuntimeException("Unexpected exception " + _id);
throw PsToPdfFailureExceptionHelper.read(_ax.getInputStream());
}
finally {
this._releaseReply(_is);
continue;
}
}
ServantObject _so = this._servant_preinvoke("convertToPdf", _opsClass);
if (_so == null) {
throw new UNKNOWN("local invocations not supported!");
}
PsToPdfServiceOperations _localServant = (PsToPdfServiceOperations)_so.servant;
try {
_localServant.convertToPdf(filePaths, fontPaths, bUsePrologue, timeout);
return;
}
finally {
this._servant_postinvoke(_so);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
* Loose catch block
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
* Lifted jumps to return sites
*/
public FontsInFolder[] getFontsInFolder(PsToPdfFontPaths fontPaths, String folderPath) throws PsToPdfFailureException {
while (!this._is_local()) {
InputStream _is = null;
try {
FontsInFolder[] _result2;
OutputStream _os = this._request("getFontsInFolder", true);
PsToPdfFontPathsHelper.write(_os, fontPaths);
_os.write_wstring(folderPath);
_is = this._invoke(_os);
FontsInFolder[] arrfontsInFolder = _result2 = AvailableFontsHelper.read(_is);
return arrfontsInFolder;
}
catch (RemarshalException _rx) {}
continue;
catch (ApplicationException _ax) {
String _id = _ax.getId();
if (!_id.equals("IDL:com/adobe/ps2pdf/PsToPdfFailureException:1.0")) throw new RuntimeException("Unexpected exception " + _id);
throw PsToPdfFailureExceptionHelper.read(_ax.getInputStream());
}
finally {
this._releaseReply(_is);
continue;
}
}
ServantObject _so = this._servant_preinvoke("getFontsInFolder", _opsClass);
if (_so == null) {
throw new UNKNOWN("local invocations not supported!");
}
PsToPdfServiceOperations _localServant = (PsToPdfServiceOperations)_so.servant;
try {
FontsInFolder[] _result = _localServant.getFontsInFolder(fontPaths, folderPath);
return _result;
}
finally {
this._servant_postinvoke(_so);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
* Loose catch block
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
* Lifted jumps to return sites
*/
public String getColorProfilesDirectory() throws PsToPdfFailureException {
while (!this._is_local()) {
InputStream _is = null;
try {
String _result2;
OutputStream _os = this._request("getColorProfilesDirectory", true);
_is = this._invoke(_os);
String string = _result2 = _is.read_wstring();
return string;
}
catch (RemarshalException _rx) {}
continue;
catch (ApplicationException _ax) {
String _id = _ax.getId();
if (!_id.equals("IDL:com/adobe/ps2pdf/PsToPdfFailureException:1.0")) throw new RuntimeException("Unexpected exception " + _id);
throw PsToPdfFailureExceptionHelper.read(_ax.getInputStream());
}
finally {
this._releaseReply(_is);
continue;
}
}
ServantObject _so = this._servant_preinvoke("getColorProfilesDirectory", _opsClass);
if (_so == null) {
throw new UNKNOWN("local invocations not supported!");
}
PsToPdfServiceOperations _localServant = (PsToPdfServiceOperations)_so.servant;
try {
String _result = _localServant.getColorProfilesDirectory();
return _result;
}
finally {
this._servant_postinvoke(_so);
}
}
}