38 |
|
|
39 |
package org.omg.PortableInterceptor; |
package org.omg.PortableInterceptor; |
40 |
|
|
41 |
|
import gnu.CORBA.Minor; |
42 |
|
|
43 |
import org.omg.CORBA.Any; |
import org.omg.CORBA.Any; |
44 |
import org.omg.CORBA.BAD_PARAM; |
import org.omg.CORBA.BAD_PARAM; |
45 |
import org.omg.CORBA.MARSHAL; |
import org.omg.CORBA.MARSHAL; |
135 |
*/ |
*/ |
136 |
public static Current read(InputStream input) |
public static Current read(InputStream input) |
137 |
{ |
{ |
138 |
throw new MARSHAL(); |
MARSHAL m = new MARSHAL("Inappropriate"); |
139 |
|
m.minor = Minor.Inappropriate; |
140 |
|
throw m; |
141 |
} |
} |
142 |
|
|
143 |
/** |
/** |
149 |
*/ |
*/ |
150 |
public static void write(OutputStream output, Current value) |
public static void write(OutputStream output, Current value) |
151 |
{ |
{ |
152 |
throw new MARSHAL(); |
MARSHAL m = new MARSHAL("Inappropriate"); |
153 |
|
m.minor = Minor.Inappropriate; |
154 |
|
throw m; |
155 |
} |
} |
156 |
} |
} |