com.flat502.rox.marshal
Interface ExtendedMethodCallUnmarshaller

All Superinterfaces:
MethodCallUnmarshaller, MethodUnmarshaller
All Known Implementing Classes:
DomMethodCallUnmarshaller, SaxMethodCallUnmarshaller

public interface ExtendedMethodCallUnmarshaller
extends MethodCallUnmarshaller

Extends the MethodCallUnmarshaller interface with overloaded methods that default some parameters.


Method Summary
 RpcCall unmarshal(java.io.InputStream in)
          Unmarshal an RpcCall instance from an InputStream.
 RpcCall unmarshal(java.io.InputStream in, java.lang.Class[] structClasses)
          Unmarshal an RpcCall instance from an InputStream.
 RpcCall unmarshal(java.io.Reader in)
          Unmarshal an RpcCall instance from a Reader.
 RpcCall unmarshal(java.io.Reader in, java.lang.Class[] structClasses)
          Unmarshal an RpcCall instance from a Reader.
 RpcCall unmarshal(java.lang.String xml)
          Unmarshal an RpcCall instance from an XML string.
 RpcCall unmarshal(java.lang.String xml, java.lang.Class[] structClasses)
          Unmarshal an RpcCall instance from an XML string.
 
Methods inherited from interface com.flat502.rox.marshal.MethodCallUnmarshaller
unmarshal, unmarshal, unmarshal
 
Methods inherited from interface com.flat502.rox.marshal.MethodUnmarshaller
getDefaultFieldNameCodec
 

Method Detail

unmarshal

RpcCall unmarshal(java.io.InputStream in)
                  throws java.lang.Exception
Unmarshal an RpcCall instance from an InputStream.

Implementations are responsible for determining the stream's character encoding (where applicable).

Parameters:
in - The InputStream from which to unmarshal a new RpcCall instance.
Returns:
A new instance of this class representing the XML structure in the given document.
Throws:
java.lang.Exception - Implementations are free to throw exceptions.

unmarshal

RpcCall unmarshal(java.io.InputStream in,
                  java.lang.Class[] structClasses)
                  throws java.lang.Exception
Unmarshal an RpcCall instance from an InputStream.

Implementations are responsible for determining the stream's character encoding (where applicable).

Parameters:
in - The InputStream from which to unmarshal a new RpcCall instance.
structClasses - A list of classes to unmarshal parameters into if said parameters are structs. May be null, in which case Map instances will be used in all cases. Parameters are indexed into this array based on their position. If this index exceeds the length of this array, or if the indexed element is null a Map instance will be used.
Returns:
A new instance of this class representing the XML structure in the given document.
Throws:
java.lang.Exception - Implementations are free to throw exceptions.

unmarshal

RpcCall unmarshal(java.io.Reader in)
                  throws java.lang.Exception
Unmarshal an RpcCall instance from a Reader.

Parameters:
in - The Reader from which to unmarshal a new RpcCall instance.
Returns:
A new instance of this class representing the XML structure in the given document.
Throws:
java.lang.Exception - Implementations are free to throw exceptions.

unmarshal

RpcCall unmarshal(java.io.Reader in,
                  java.lang.Class[] structClasses)
                  throws java.lang.Exception
Unmarshal an RpcCall instance from a Reader.

Parameters:
in - The Reader from which to unmarshal a new RpcCall instance.
structClasses - A list of classes to unmarshal parameters into if said parameters are structs. May be null, in which case Map instances will be used in all cases. Parameters are indexed into this array based on their position. If this index exceeds the length of this array, or if the indexed element is null a Map instance will be used.
Returns:
A new instance of this class representing the XML structure in the given document.
Throws:
java.lang.Exception - Implementations are free to throw exceptions.

unmarshal

RpcCall unmarshal(java.lang.String xml)
                  throws java.lang.Exception
Unmarshal an RpcCall instance from an XML string.

Parameters:
xml - The XML string from which to unmarshal a new RpcCall instance.
Returns:
A new instance of this class representing the XML structure in the given document.
Throws:
java.lang.Exception - Implementations are free to throw exceptions.

unmarshal

RpcCall unmarshal(java.lang.String xml,
                  java.lang.Class[] structClasses)
                  throws java.lang.Exception
Unmarshal an RpcCall instance from an XML string.

Parameters:
xml - The XML string from which to unmarshal a new RpcCall instance.
structClasses - A list of classes to unmarshal parameters into if said parameters are structs. May be null, in which case Map instances will be used in all cases. Parameters are indexed into this array based on their position. If this index exceeds the length of this array, or if the indexed element is null a Map instance will be used.
Returns:
A new instance of this class representing the XML structure in the given document.
Throws:
java.lang.Exception - Implementations are free to throw exceptions.