/[classpath]/classpath/org/omg/CORBA/ULongSeqHelper.java
ViewVC logotype

Diff of /classpath/org/omg/CORBA/ULongSeqHelper.java

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

revision 1.1.2.1 by gnu_andrew, Sun Mar 13 14:38:59 2005 UTC revision 1.1.2.2 by gnu_andrew, Fri May 20 18:21:00 2005 UTC
# Line 106  public abstract class ULongSeqHelper Line 106  public abstract class ULongSeqHelper
106    
107    /**    /**
108     * Reads the <code>int[]</code> from the CORBA input stream.     * Reads the <code>int[]</code> from the CORBA input stream.
    * This implementation first creates an instance of  
    * {@link ULongSeqHolder} and then delegates functionality  
    * to its <code>_read()</code> method.  
109     *     *
110     * @param input the CORBA (not java.io) stream to read from.     * @param input the CORBA (not java.io) stream to read from.
111     * @return the value from the stream.     * @return the value from the stream.
112     */     */
113    public static int[] read(InputStream input)    public static int[] read(InputStream input)
114    {    {
115      ULongSeqHolder h = new ULongSeqHolder();      int[] value = new int[ input.read_long() ];
116      h._read(input);      input.read_ulong_array(value, 0, value.length);
117      return h.value;      return value;
118    }    }
119    
120    /**    /**
# Line 133  public abstract class ULongSeqHelper Line 130  public abstract class ULongSeqHelper
130    
131    /**    /**
132     * Writes the <code>int[]</code> into the given stream.     * Writes the <code>int[]</code> into the given stream.
    * This implementation first creates an instance of  
    * {@link ULongSeqHolder} and then delegates functionality  
    * to its <code>_write()</code> method.  
133     *     *
134     * @param output the CORBA (not java.io) output stream to write.     * @param output the CORBA (not java.io) output stream to write.
135     * @param value the value that must be written.     * @param value the value that must be written.
136     */     */
137    public static void write(OutputStream output, int[] value)    public static void write(OutputStream output, int[] value)
138    {    {
139      ULongSeqHolder h = new ULongSeqHolder(value);      output.write_long(value.length);
140      h._write(output);      output.write_ulong_array(value, 0, value.length);
141    }    }
142  }  }

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

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