Class WrapperInputStream

    • Field Detail

      • typeMap

        private java.util.Map<java.lang.Integer,​TypeCodeImpl> typeMap
      • startPos

        private int startPos
    • Constructor Detail

    • Method Detail

      • read

        public int read​(byte[] b)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • skip

        public long skip​(long n)
                  throws java.io.IOException
        Overrides:
        skip in class java.io.InputStream
        Throws:
        java.io.IOException
      • available

        public int available()
                      throws java.io.IOException
        Overrides:
        available in class java.io.InputStream
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream
        Throws:
        java.io.IOException
      • mark

        public void mark​(int readlimit)
        Specified by:
        mark in interface MarshalInputStream
        Overrides:
        mark in class java.io.InputStream
      • reset

        public void reset()
        Specified by:
        reset in interface MarshalInputStream
        Overrides:
        reset in class java.io.InputStream
      • markSupported

        public boolean markSupported()
        Overrides:
        markSupported in class java.io.InputStream
      • read_octet

        public byte read_octet()
        Description copied from class: InputStream
        Reads an octet (that is, a byte) value from this input stream.
        Specified by:
        read_octet in interface MarshalInputStream
        Specified by:
        read_octet in class InputStream
        Returns:
        the byte value read from this input stream
      • read_long

        public int read_long()
        Description copied from class: InputStream
        Reads a CORBA long (that is, Java int) value from this input stream.
        Specified by:
        read_long in interface MarshalInputStream
        Specified by:
        read_long in class InputStream
        Returns:
        the int value read from this input stream
      • read_ulong

        public int read_ulong()
        Description copied from class: InputStream
        Reads an unsigned CORBA long (that is, Java int) value from this input stream.
        Specified by:
        read_ulong in interface MarshalInputStream
        Specified by:
        read_ulong in class InputStream
        Returns:
        the int value read from this input stream
      • read_ulonglong

        public long read_ulonglong()
        Description copied from class: InputStream
        Reads a CORBA unsigned longlong (that is, Java long) value from this input stream.
        Specified by:
        read_ulonglong in interface MarshalInputStream
        Specified by:
        read_ulonglong in class InputStream
        Returns:
        the long value read from this input stream
      • read_boolean_array

        public void read_boolean_array​(boolean[] value,
                                       int offset,
                                       int length)
        Description copied from class: InputStream
        Reads an array of booleans from this input stream.
        Specified by:
        read_boolean_array in interface MarshalInputStream
        Specified by:
        read_boolean_array in class InputStream
        Parameters:
        value - returned array of booleans.
        offset - offset on the stream.
        length - length of buffer to read
      • read_char_array

        public void read_char_array​(char[] value,
                                    int offset,
                                    int length)
        Description copied from class: InputStream
        Reads an array of chars from this input stream.
        Specified by:
        read_char_array in interface MarshalInputStream
        Specified by:
        read_char_array in class InputStream
        Parameters:
        value - returned array of chars.
        offset - offset on the stream.
        length - length of buffer to read
      • read_wchar_array

        public void read_wchar_array​(char[] value,
                                     int offset,
                                     int length)
        Description copied from class: InputStream
        Reads an array of wide chars from this input stream.
        Specified by:
        read_wchar_array in interface MarshalInputStream
        Specified by:
        read_wchar_array in class InputStream
        Parameters:
        value - returned array of wide chars.
        offset - offset on the stream.
        length - length of buffer to read
      • read_octet_array

        public void read_octet_array​(byte[] value,
                                     int offset,
                                     int length)
        Description copied from class: InputStream
        Reads an array of octets (that is, bytes) from this input stream.
        Specified by:
        read_octet_array in interface MarshalInputStream
        Specified by:
        read_octet_array in class InputStream
        Parameters:
        value - returned array of octets (that is, bytes).
        offset - offset on the stream.
        length - length of buffer to read
      • read_short_array

        public void read_short_array​(short[] value,
                                     int offset,
                                     int length)
        Description copied from class: InputStream
        Reads an array of shorts from this input stream.
        Specified by:
        read_short_array in interface MarshalInputStream
        Specified by:
        read_short_array in class InputStream
        Parameters:
        value - returned array of shorts.
        offset - offset on the stream.
        length - length of buffer to read
      • read_ushort_array

        public void read_ushort_array​(short[] value,
                                      int offset,
                                      int length)
        Description copied from class: InputStream
        Reads an array of unsigned shorts from this input stream.
        Specified by:
        read_ushort_array in interface MarshalInputStream
        Specified by:
        read_ushort_array in class InputStream
        Parameters:
        value - returned array of shorts.
        offset - offset on the stream.
        length - length of buffer to read
      • read_long_array

        public void read_long_array​(int[] value,
                                    int offset,
                                    int length)
        Description copied from class: InputStream
        Reads an array of CORBA longs (that is, Java ints) from this input stream.
        Specified by:
        read_long_array in interface MarshalInputStream
        Specified by:
        read_long_array in class InputStream
        Parameters:
        value - returned array of CORBA longs (that is, Java ints).
        offset - offset on the stream.
        length - length of buffer to read
      • read_ulong_array

        public void read_ulong_array​(int[] value,
                                     int offset,
                                     int length)
        Description copied from class: InputStream
        Reads an array of unsigned CORBA longs (that is, Java ints) from this input stream.
        Specified by:
        read_ulong_array in interface MarshalInputStream
        Specified by:
        read_ulong_array in class InputStream
        Parameters:
        value - returned array of CORBA longs (that is, Java ints).
        offset - offset on the stream.
        length - length of buffer to read
      • read_longlong_array

        public void read_longlong_array​(long[] value,
                                        int offset,
                                        int length)
        Description copied from class: InputStream
        Reads an array of CORBA longlongs (that is, Java longs) from this input stream.
        Specified by:
        read_longlong_array in interface MarshalInputStream
        Specified by:
        read_longlong_array in class InputStream
        Parameters:
        value - returned array of CORBA longs (that is, Java longs).
        offset - offset on the stream.
        length - length of buffer to read
      • read_ulonglong_array

        public void read_ulonglong_array​(long[] value,
                                         int offset,
                                         int length)
        Description copied from class: InputStream
        Reads an array of unsigned CORBA longlongs (that is, Java longs) from this input stream.
        Specified by:
        read_ulonglong_array in interface MarshalInputStream
        Specified by:
        read_ulonglong_array in class InputStream
        Parameters:
        value - returned array of CORBA longs (that is, Java longs).
        offset - offset on the stream.
        length - length of buffer to read
      • read_float_array

        public void read_float_array​(float[] value,
                                     int offset,
                                     int length)
        Description copied from class: InputStream
        Reads an array of floats from this input stream.
        Specified by:
        read_float_array in interface MarshalInputStream
        Specified by:
        read_float_array in class InputStream
        Parameters:
        value - returned array of floats.
        offset - offset on the stream.
        length - length of buffer to read
      • read_double_array

        public void read_double_array​(double[] value,
                                      int offset,
                                      int length)
        Description copied from class: InputStream
        Reads an array of boubles from this input stream.
        Specified by:
        read_double_array in interface MarshalInputStream
        Specified by:
        read_double_array in class InputStream
        Parameters:
        value - returned array of doubles.
        offset - offset on the stream.
        length - length of buffer to read
      • read_value

        public java.io.Serializable read_value()
        Description copied from class: InputStream
        Unmarshalls a value type from the input stream.
        Specified by:
        read_value in interface MarshalInputStream
        Overrides:
        read_value in class InputStream
        Returns:
        the value type unmarshalled from the input stream
      • read_fixed

        public java.math.BigDecimal read_fixed()
        Description copied from class: InputStream
        Reads a BigDecimal number.
        Overrides:
        read_fixed in class InputStream
        Returns:
        a java.math.BigDecimal number
      • performORBVersionSpecificInit

        public void performORBVersionSpecificInit()
        Description copied from interface: MarshalInputStream
        This must be called once before unmarshaling valuetypes or anything that uses repository IDs. The ORB's version should be set to the desired value prior to calling.
        Specified by:
        performORBVersionSpecificInit in interface MarshalInputStream
      • resetCodeSetConverters

        public void resetCodeSetConverters()
        Description copied from interface: MarshalInputStream
        Tells the input stream to null any code set converter references, forcing it to reacquire them if it needs converters again. This is used when the server input stream needs to switch the connection's char code set converter to something different after reading the code set service context for the first time. Initially, we use ISO8859-1 to read the operation name (it can't be more than ASCII).
        Specified by:
        resetCodeSetConverters in interface MarshalInputStream