/[classpath]/classpath/gnu/CORBA/GIOP/MessageHeader.java
ViewVC logotype

Diff of /classpath/gnu/CORBA/GIOP/MessageHeader.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by audriusa, Sun Oct 2 19:58:00 2005 UTC revision 1.7 by audriusa, Tue Oct 4 17:58:14 2005 UTC
# Line 38  exception statement from your version. * Line 38  exception statement from your version. *
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;
# Line 283  public class MessageHeader Line 284  public class MessageHeader
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    
# Line 304  public class MessageHeader Line 309  public class MessageHeader
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        }        }
# Line 349  public class MessageHeader Line 355  public class MessageHeader
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        }        }
# Line 431  public class MessageHeader Line 438  public class MessageHeader
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        }        }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26