Package org.jboss.marshalling.river
Class RiverMarshallerFactory
java.lang.Object
org.jboss.marshalling.AbstractMarshallerFactory
org.jboss.marshalling.river.RiverMarshallerFactory
- All Implemented Interfaces:
MarshallerFactory
The River marshaller factory implementation.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance of a River marshaller factory. -
Method Summary
Modifier and TypeMethodDescriptioncreateMarshaller
(MarshallingConfiguration configuration) Create a marshaller from this configuration.createUnmarshaller
(MarshallingConfiguration configuration) Create an unmarshaller from this configuration.protected int
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
-
Field Details
-
registry
-
-
Constructor Details
-
RiverMarshallerFactory
public RiverMarshallerFactory()Construct a new instance of a River marshaller factory.
-
-
Method Details
-
createUnmarshaller
Create an unmarshaller from this configuration.- Parameters:
configuration
- the marshalling configuration to use- Returns:
- an unmarshaller
- Throws:
IOException
- if an error occurs
-
createMarshaller
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
-