Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

UnMarshaller Interface Reference

Inheritance diagram for UnMarshaller:

Inheritance graph
[legend]
List of all members.

Public Methods

byte readByte () throws JonathanException
boolean readBoolean () throws JonathanException
char readChar8 () throws JonathanException
char readChar16 () throws JonathanException
short readShort () throws JonathanException
int readInt () throws JonathanException
long readLong () throws JonathanException
float readFloat () throws JonathanException
double readDouble () throws JonathanException
String readString8 () throws JonathanException
String readString16 () throws JonathanException
Object readReference () throws JonathanException
Object readValue () throws JonathanException
void readByteArray (byte[] array, int offset, int len) throws JonathanException
InputStream inputStream ()
boolean isLittleEndian ()
void setByteOrder (boolean little_endian)
int bytesRead ()
void setSize (int size) throws JonathanException
void close ()
Context getContext ()

Detailed Description

UnMarshaller is the type of basic types unmarshallers. It should be used by protocols.

Definition at line 39 of file UnMarshaller.java.


Member Function Documentation

int UnMarshaller::bytesRead ( )
 

Returns the number of bytes read since the beginning.

Returns:
the number of bytes read since the beginning.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

Referenced by ORBClass::CORBAUnMarshaller::readEncapsulatedTypeCodeRec(), ORBClass::CORBAUnMarshaller::readTypeCodeRec(), and ORBClass::CORBAUnMarshaller::read_TypeCode().

void UnMarshaller::close ( )
 

Closes the target unmarshaller, releasing all underlying resources (including a possible chunk provider).

Reimplemented in DavidInputStream, PortableMarshallerFactory::PortableUnMarshaller, PortableMarshallerFactory::PortableUnMarshallerD, ObjectStreamUnMarshaller, StdMarshallerFactory::StdUnMarshaller, and StdMarshallerFactory::StdUnMarshallerD.

Referenced by IIOPBinder::CltIdentifier::CltIdentifier(), EBinder::EId::EId(), RegistryImpl_Stub::bind(), JRMITSHandler::decodeContext(), JRMIReferenceImpl_Stub::getReference(), JStubFactory::ClientDelegate::getResponse(), IIOPBinder::CltIdentifier::init(), RefImpl::invoke(), RegistryImpl_Stub::list(), GIOPProtocol::ReplyHolder::listen(), RegistryImpl_Stub::lookup(), RegistryImpl_Stub::rebind(), StdStubFactory::DynamicRequestSession::send(), StdStubFactory::RequestSessionImpl::send(), RTPProtocol::RTPDecoder::send(), RegistryImpl_Skel::send(), JRMIReferenceImpl_Skel::send(), GIOPProtocol::ServerSession_Low::send(), GIOPProtocol::ClientSession_Low::send(), OneWaySkeleton::send(), EventChannelFactory::ConsumerDelegate::send(), and RegistryImpl_Stub::unbind().

Context UnMarshaller::getContext ( )
 

Returns a Context associated with this unmarshaller.

Returns:
a Context associated with this unmarshaller.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

Referenced by JStubFactory::ClientDelegate::getResponse(), ServerDelegate::handleSkeletonCall(), GIOPProtocol::ReplyHolder::listen(), GIOPProtocol::ServerSession_Low::send(), and GIOPProtocol::ClientSession_Low::send().

InputStream UnMarshaller::inputStream ( )
 

Returns an input stream to read data from the unmarshaller.

Closing the returned input stream has the same effect as closing the actual unmarshaller.

Returns:
an input stream to read from the unmarshaller.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

boolean UnMarshaller::isLittleEndian ( )
 

Returns true if this unmarshaller is little-endian, false otherwise.

Returns:
true if this unmarshaller is little-endian, false otherwise.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

boolean UnMarshaller::readBoolean ( )
 

Reads a boolean.

Returns:
a boolean.
Exceptions:
JonathanException   if the format of the data is incompatible with the request.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

Referenced by IIOPBinder::CltIdentifier::CltIdentifier(), EBinder::EId::EId(), UnknownExceptionService::handleReplyContext(), IIOPBinder::CltIdentifier::init(), and GIOPProtocol::ServerSession_Low::send().

byte UnMarshaller::readByte ( )
 

Reads a byte.

Returns:
a byte.
Exceptions:
JonathanException   if the format of the data is incompatible with the request.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

Referenced by GIOPProtocol::ServerSession_Low::send(), and GIOPProtocol::ClientSession_Low::send().

void UnMarshaller::readByteArray ( byte array[],
int off,
int len )
 

Reads an array of bytes.

Parameters:
array   a byte array (of size >= offset + len)
offset   the position (in array) of the first byte to write
len   the total number of bytes to read;
Exceptions:
JonathanException   if the format of the data is incompatible with the request.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

Referenced by IIOPBinder::CltIdentifier::init(), and GIOPProtocol::ServerSession_Low::send().

char UnMarshaller::readChar16 ( )
 

Reads a 16 bits char.

Returns:
a char.
Exceptions:
JonathanException   if the format of the data is incompatible with the request.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

char UnMarshaller::readChar8 ( )
 

Reads a 8 bits char.

Returns:
a char.
Exceptions:
JonathanException   if the format of the data is incompatible with the request.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

Referenced by IIOPBinder::CltIdentifier::init().

double UnMarshaller::readDouble ( )
 

Reads a double.

Returns:
a double.
Exceptions:
JonathanException   if the format of the data is incompatible with the request.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

float UnMarshaller::readFloat ( )
 

Reads a float.

Returns:
a float.
Exceptions:
JonathanException   if the format of the data is incompatible with the request.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

int UnMarshaller::readInt ( )
 

Reads an int.

Returns:
an int.
Exceptions:
JonathanException   if the format of the data is incompatible with the request.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

Referenced by IIOPBinder::CltIdentifier::init(), EBinder::EId::init(), GIOPProtocol::ReplyHolder::listen(), ORBClass::CORBAUnMarshaller::readEncapsulatedTypeCodeRec(), ORBClass::CORBAUnMarshaller::readTypeCodeRec(), ORBClass::CORBAUnMarshaller::read_Object(), ServerDelegate::send(), RegistryImpl_Skel::send(), JRMIReferenceImpl_Skel::send(), GIOPProtocol::ServerSession_Low::send(), GIOPProtocol::ClientSession_Low::send(), and EventChannelFactory::ConsumerDelegate::send().

long UnMarshaller::readLong ( )
 

Reads a long.

Returns:
a long.
Exceptions:
JonathanException   if the format of the data is incompatible with the request.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

Object UnMarshaller::readReference ( )
 

Reads a reference to an object.

Returns:
a reference to an object.
Exceptions:
JonathanException   if the format of the data is incompatible with the request.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

Referenced by GIOPProtocol::ReplyHolder::listen().

short UnMarshaller::readShort ( )
 

Reads a short.

Returns:
a short.
Exceptions:
JonathanException   if the format of the data is incompatible with the request.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

Referenced by IIOPBinder::CltIdentifier::init(), and ORBClass::CORBAUnMarshaller::readEncapsulatedTypeCodeRec().

String UnMarshaller::readString16 ( )
 

Reads a string composed of 16 bits chars.

Returns:
a string.
Exceptions:
JonathanException   if the format of the data is incompatible with the request.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

String UnMarshaller::readString8 ( )
 

Reads a string composed of 8 bits chars.

Returns:
a string.
Exceptions:
JonathanException   if the format of the data is incompatible with the request.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

Referenced by IIOPBinder::CltIdentifier::init(), EBinder::EId::init(), GIOPProtocol::ReplyHolder::listen(), ORBClass::CORBAUnMarshaller::readEncapsulatedTypeCodeRec(), ORBClass::CORBAUnMarshaller::read_Object(), ServerDelegate::send(), and EventChannelFactory::ConsumerDelegate::send().

Object UnMarshaller::readValue ( )
 

Reads a value

Returns:
an object representing the read value
Exceptions:
JonathanException   if the format of the data is incompatible with the request.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

Referenced by RegistryImpl_Stub::bind(), JRMITSHandler::decodeContext(), JRMIReferenceImpl_Stub::getReference(), RegistryImpl_Stub::list(), RegistryImpl_Stub::lookup(), RegistryImpl_Stub::rebind(), RegistryImpl_Skel::send(), and RegistryImpl_Stub::unbind().

void UnMarshaller::setByteOrder ( boolean little_endian )
 

Sets the byte order (returned by isLittleEndian) of the target unmarshaller

Parameters:
little_endian   the new byte order.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

Referenced by IIOPBinder::CltIdentifier::CltIdentifier(), EBinder::EId::EId(), UnknownExceptionService::handleReplyContext(), IIOPBinder::CltIdentifier::init(), GIOPProtocol::ServerSession_Low::send(), GIOPProtocol::ClientSession_Low::send(), and ORBClass::string_to_object().

void UnMarshaller::setSize ( int size )
 

Sets the number of bytes readable from the unmarshaller.

Once this method has been called, it won't be possible to read more than the size specified bytes from this unmarshaller. Knowing the exact number of readable bytes lets the unmarshaller free the resources (such as a chunk provider) that won't be used. This method may block until the expected number of bytes is readable.

Parameters:
size   the expected number of readable bytes.
Exceptions:
JonathanException   if something goes wrong.

Reimplemented in PortableMarshallerFactory::PortableUnMarshaller, ObjectStreamUnMarshaller, and StdMarshallerFactory::StdUnMarshaller.

Referenced by GIOPProtocol::ServerSession_Low::send(), and GIOPProtocol::ClientSession_Low::send().


The documentation for this interface was generated from the following file:
Generated at Fri May 31 19:25:40 2002 for Jonathan by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001