ConverterAgentHelper.java
2.5 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
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.native2pdf.bmc;
import com.adobe.native2pdf.bmc.ConverterAgent;
import com.adobe.native2pdf.bmc._ConverterAgentStub;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_PARAM;
import org.omg.CORBA.ORB;
import org.omg.CORBA.Object;
import org.omg.CORBA.TypeCode;
import org.omg.CORBA.portable.Delegate;
import org.omg.CORBA.portable.InputStream;
import org.omg.CORBA.portable.ObjectImpl;
import org.omg.CORBA.portable.OutputStream;
public abstract class ConverterAgentHelper {
private static String _id = "IDL:com/adobe/native2pdf/bmc/ConverterAgent:1.0";
private static TypeCode __typeCode = null;
public static void insert(Any a, ConverterAgent that) {
OutputStream out = a.create_output_stream();
a.type(ConverterAgentHelper.type());
ConverterAgentHelper.write(out, that);
a.read_value(out.create_input_stream(), ConverterAgentHelper.type());
}
public static ConverterAgent extract(Any a) {
return ConverterAgentHelper.read(a.create_input_stream());
}
public static synchronized TypeCode type() {
if (__typeCode == null) {
__typeCode = ORB.init().create_interface_tc(ConverterAgentHelper.id(), "ConverterAgent");
}
return __typeCode;
}
public static String id() {
return _id;
}
public static ConverterAgent read(InputStream istream) {
return ConverterAgentHelper.narrow(istream.read_Object(_ConverterAgentStub.class));
}
public static void write(OutputStream ostream, ConverterAgent value) {
ostream.write_Object(value);
}
public static ConverterAgent narrow(Object obj) {
if (obj == null) {
return null;
}
if (obj instanceof ConverterAgent) {
return (ConverterAgent)obj;
}
if (!obj._is_a(ConverterAgentHelper.id())) {
throw new BAD_PARAM();
}
Delegate delegate = ((ObjectImpl)obj)._get_delegate();
_ConverterAgentStub stub = new _ConverterAgentStub();
stub._set_delegate(delegate);
return stub;
}
public static ConverterAgent unchecked_narrow(Object obj) {
if (obj == null) {
return null;
}
if (obj instanceof ConverterAgent) {
return (ConverterAgent)obj;
}
Delegate delegate = ((ObjectImpl)obj)._get_delegate();
_ConverterAgentStub stub = new _ConverterAgentStub();
stub._set_delegate(delegate);
return stub;
}
}