/[classpath]/classpath/gnu/CORBA/CDR/encapsulatedOutput.java
ViewVC logotype

Diff of /classpath/gnu/CORBA/CDR/encapsulatedOutput.java

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

revision 1.1 by audriusa, Sun May 15 01:09:29 2005 UTC revision 1.2 by audriusa, Tue May 31 20:27:14 2005 UTC
# Line 57  public class encapsulatedOutput Line 57  public class encapsulatedOutput
57    public static final byte BIG_ENDIAN = 0;    public static final byte BIG_ENDIAN = 0;
58    
59    /**    /**
60       * The Little Endian (least siginificant byte first flag).
61       */
62      public static final byte LITTLE_ENDIAN = 1;
63    
64      /**
65     * The byte buffer.     * The byte buffer.
66     */     */
67    public final aligningOutputStream buffer;    public final aligningOutputStream buffer;
# Line 67  public class encapsulatedOutput Line 72  public class encapsulatedOutput
72    public final org.omg.CORBA.portable.OutputStream parent;    public final org.omg.CORBA.portable.OutputStream parent;
73    
74    /**    /**
75     * Create the EncapsulationOutput with the default buffer size     * Create the EncapsulationOutput with the given parent stream
76     * and the given parent stream.     * and the specified encoding.
77      */     */
78    public encapsulatedOutput(org.omg.CORBA.portable.OutputStream _parent)    public encapsulatedOutput(org.omg.CORBA.portable.OutputStream _parent,
79                                boolean use_big_endian)
80    {    {
81      super();      super();
82      buffer = new aligningOutputStream();      buffer = new aligningOutputStream();
83      setOutputStream(buffer);      setOutputStream(buffer);
84      parent = _parent;      parent = _parent;
85      write(BIG_ENDIAN);      write(use_big_endian?BIG_ENDIAN:LITTLE_ENDIAN);
86    }    }
87    
88    /**    /**

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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