Package org.jboss.marshalling.river
Class RiverMarshallerFactory
- java.lang.Object
-
- org.jboss.marshalling.AbstractMarshallerFactory
-
- org.jboss.marshalling.river.RiverMarshallerFactory
-
- All Implemented Interfaces:
MarshallerFactory
public class RiverMarshallerFactory extends AbstractMarshallerFactory
The River marshaller factory implementation.
-
-
Constructor Summary
Constructors Constructor Description RiverMarshallerFactory()
Construct a new instance of a River marshaller factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, getDefaultObjectResolver, getDefaultObjectTable, getDefaultStreamHeader, getMinimumBufferSize
-
-
-
-
Method Detail
-
createUnmarshaller
public Unmarshaller createUnmarshaller(MarshallingConfiguration configuration) throws IOException
Create an unmarshaller from this configuration.- Parameters:
configuration
- the marshalling configuration to use- Returns:
- an unmarshaller
- Throws:
IOException
- if an error occurs
-
createMarshaller
public Marshaller createMarshaller(MarshallingConfiguration configuration) throws IOException
Create a marshaller from this configuration.- Parameters:
configuration
- the marshalling configuration to use- Returns:
- a marshaller
- Throws:
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 classAbstractMarshallerFactory
- Returns:
- the default version to use
-
-