Package org.jboss.marshalling.serial
Class SerialMarshallerFactory
- java.lang.Object
-
- org.jboss.marshalling.AbstractMarshallerFactory
-
- org.jboss.marshalling.serial.SerialMarshallerFactory
-
- All Implemented Interfaces:
MarshallerFactory
public final class SerialMarshallerFactory extends AbstractMarshallerFactory implements MarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description SerialMarshallerFactory()
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 StreamHeader
getDefaultStreamHeader()
Get the default stream header, which is used if none was configured.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, getMinimumBufferSize
-
-
-
-
Method Detail
-
getDefaultStreamHeader
protected StreamHeader getDefaultStreamHeader()
Description copied from class:AbstractMarshallerFactory
Get the default stream header, which is used if none was configured. This base implementation returns a no-operation stream header (writes and reads no bytes).- Overrides:
getDefaultStreamHeader
in classAbstractMarshallerFactory
- Returns:
- the stream header
-
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
-
createUnmarshaller
public Unmarshaller createUnmarshaller(MarshallingConfiguration configuration) throws IOException
Description copied from interface:MarshallerFactory
Create an unmarshaller from this configuration.- Specified by:
createUnmarshaller
in interfaceMarshallerFactory
- Parameters:
configuration
- the marshalling configuration to use- Returns:
- an unmarshaller
- Throws:
IOException
- if an error occurs
-
createMarshaller
public Marshaller createMarshaller(MarshallingConfiguration configuration) throws IOException
Description copied from interface:MarshallerFactory
Create a marshaller from this configuration.- Specified by:
createMarshaller
in interfaceMarshallerFactory
- Parameters:
configuration
- the marshalling configuration to use- Returns:
- a marshaller
- Throws:
IOException
- if an error occurs
-
-