org.jacorb.orb.giop
Class ReplyInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byorg.omg.CORBA.portable.InputStream
          extended byorg.omg.CORBA_2_3.portable.InputStream
              extended byorg.jacorb.orb.CDRInputStream
                  extended byorg.jacorb.orb.giop.MessageInputStream
                      extended byorg.jacorb.orb.giop.ServiceContextTransportingInputStream
                          extended byorg.jacorb.orb.giop.ReplyInputStream

public class ReplyInputStream
extends ServiceContextTransportingInputStream

Version:
$Id: ReplyInputStream.java,v 1.19 2004/01/02 12:13:25 nick.cross Exp $
Author:
Gerald Brose, FU Berlin 1999

Field Summary
 ReplyHeader_1_2 rep_hdr
           
 
Fields inherited from class org.jacorb.orb.giop.MessageInputStream
msg_size
 
Fields inherited from class org.jacorb.orb.CDRInputStream
buffer, giop_minor, index, littleEndian, pos
 
Constructor Summary
ReplyInputStream(ORB orb, byte[] buffer)
           
 
Method Summary
protected  void finalize()
           
 byte[] getBody()
          Returns a copy of the body of this reply.
 java.lang.Exception getException()
          Returns any exception that is indicated by this reply.
 ReplyStatusType_1_2 getStatus()
          Returns the reply status of this reply.
 
Methods inherited from class org.jacorb.orb.giop.ServiceContextTransportingInputStream
skipHeaderPadding
 
Methods inherited from class org.jacorb.orb.CDRInputStream
available, close, closeEncapsulation, get_pos, getBufferCopy, getGIOPMinor, mark, markSupported, openEncapsulatedArray, openEncapsulation, orb, read_abstract_interface, read_abstract_interface, read_any, read_boolean_array, read_boolean, read_char_array, read_char, read_double_array, read_double, read_fixed, read_float_array, read_float, read_long_array, read_long, read_longlong_array, read_longlong, read_Object, read_Object, read_octet_array, read_octet, read_Principal, read_short_array, read_short, read_string, read_TypeCode, read_ulong_array, read_ulong, read_ulonglong_array, read_ulonglong, read_ushort_array, read_ushort, read_value, read_value, read_value, read_value, read_value, read_wchar_array, read_wchar, read_wstring, read, read, read, register_value, reset, setCodeSet, setGIOPMinor, setLittleEndian, skip
 
Methods inherited from class org.omg.CORBA.portable.InputStream
read_Context, read_fixed
 
Methods inherited from class java.io.InputStream
skip
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rep_hdr

public ReplyHeader_1_2 rep_hdr
Constructor Detail

ReplyInputStream

public ReplyInputStream(ORB orb,
                        byte[] buffer)
Method Detail

getStatus

public ReplyStatusType_1_2 getStatus()
Returns the reply status of this reply.


getException

public java.lang.Exception getException()
Returns any exception that is indicated by this reply. If the reply status is USER_EXCEPTION, SYSTEM_EXCEPTION, LOCATION_FORWARD, or LOCATION_FORWARD_PERM, an appropriate exception object is returned. For any other status, returns null.


getBody

public byte[] getBody()
Returns a copy of the body of this reply. This does not include the GIOP header and the reply header.


finalize

protected void finalize()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable