org.jboss.marshalling.river
Class RiverMarshallerFactory

java.lang.Object
  extended by org.jboss.marshalling.AbstractMarshallerFactory
      extended by org.jboss.marshalling.river.RiverMarshallerFactory
All Implemented Interfaces:
MarshallerFactory

public class RiverMarshallerFactory
extends AbstractMarshallerFactory

The River marshaller factory implementation.


Constructor Summary
RiverMarshallerFactory()
          Construct a new instance of a River marshaller factory.
 
Method Summary
 Marshaller createMarshaller(MarshallingConfiguration configuration)
          Create a marshaller from this configuration.
 Unmarshaller createUnmarshaller(MarshallingConfiguration configuration)
          Create an unmarshaller from this configuration.
protected  int getDefaultVersion()
          Get the default version, which is used if none was configured.
 
Methods inherited from class org.jboss.marshalling.AbstractMarshallerFactory
getDefaultBufferSize, getDefaultClassExternalizerFactory, getDefaultClassResolver, getDefaultClassTable, getDefaultCreator, getDefaultExternalizerFactory, getDefaultObjectResolver, getDefaultObjectTable, getDefaultStreamHeader, getMinimumBufferSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RiverMarshallerFactory

public RiverMarshallerFactory()
Construct a new instance of a River marshaller factory.

Method Detail

createUnmarshaller

public Unmarshaller createUnmarshaller(MarshallingConfiguration configuration)
                                throws java.io.IOException
Create an unmarshaller from this configuration.

Returns:
an unmarshaller
Throws:
java.io.IOException - if an error occurs

createMarshaller

public Marshaller createMarshaller(MarshallingConfiguration configuration)
                            throws java.io.IOException
Create a marshaller from this configuration.

Returns:
a marshaller
Throws:
java.io.IOException - if an error occurs

getDefaultVersion

protected int getDefaultVersion()
Description copied from class: AbstractMarshallerFactory
Get the default version, which is used if none was configured. This base implementation returns -1.

Overrides:
getDefaultVersion in class AbstractMarshallerFactory
Returns:
the default version to use