38 |
|
|
39 |
package gnu.CORBA.GIOP; |
package gnu.CORBA.GIOP; |
40 |
|
|
41 |
|
import gnu.CORBA.Minor; |
42 |
import gnu.CORBA.Version; |
import gnu.CORBA.Version; |
43 |
import gnu.CORBA.CDR.BigEndianInputStream; |
import gnu.CORBA.CDR.BigEndianInputStream; |
44 |
import gnu.CORBA.CDR.BigEndianOutputStream; |
import gnu.CORBA.CDR.BigEndianOutputStream; |
284 |
byte[] xMagic = new byte[MAGIC.length]; |
byte[] xMagic = new byte[MAGIC.length]; |
285 |
istream.read(xMagic); |
istream.read(xMagic); |
286 |
if (!Arrays.equals(xMagic, MAGIC)) |
if (!Arrays.equals(xMagic, MAGIC)) |
287 |
throw new MARSHAL("Not a GIOP message"); |
{ |
288 |
|
MARSHAL m = new MARSHAL("Not a GIOP message"); |
289 |
|
m.minor = Minor.Giop; |
290 |
|
throw m; |
291 |
|
} |
292 |
|
|
293 |
version = Version.read_version(istream); |
version = Version.read_version(istream); |
294 |
|
|
309 |
catch (IOException ex) |
catch (IOException ex) |
310 |
{ |
{ |
311 |
MARSHAL t = new MARSHAL(); |
MARSHAL t = new MARSHAL(); |
312 |
|
t.minor = Minor.Header; |
313 |
t.initCause(ex); |
t.initCause(ex); |
314 |
throw t; |
throw t; |
315 |
} |
} |
355 |
catch (IOException ex) |
catch (IOException ex) |
356 |
{ |
{ |
357 |
MARSHAL t = new MARSHAL(); |
MARSHAL t = new MARSHAL(); |
358 |
|
t.minor = Minor.Header; |
359 |
t.initCause(ex); |
t.initCause(ex); |
360 |
throw t; |
throw t; |
361 |
} |
} |
438 |
catch (IOException ioex) |
catch (IOException ioex) |
439 |
{ |
{ |
440 |
MARSHAL m = new MARSHAL("Unable to read the message continuation."); |
MARSHAL m = new MARSHAL("Unable to read the message continuation."); |
441 |
|
m.minor = Minor.Header; |
442 |
m.initCause(ioex); |
m.initCause(ioex); |
443 |
throw m; |
throw m; |
444 |
} |
} |