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
-
-
Field Summary
Fields Modifier and Type Field Description private static StreamHeaderdefaultHeaderprivate SerializableClassRegistryregistry
-
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 MarshallercreateMarshaller(MarshallingConfiguration configuration)Create a marshaller from this configuration.UnmarshallercreateUnmarshaller(MarshallingConfiguration configuration)Create an unmarshaller from this configuration.protected StreamHeadergetDefaultStreamHeader()Get the default stream header, which is used if none was configured.protected intgetDefaultVersion()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
-
-
-
-
Field Detail
-
registry
private final SerializableClassRegistry registry
-
defaultHeader
private static final StreamHeader defaultHeader
-
-
Method Detail
-
getDefaultStreamHeader
protected StreamHeader getDefaultStreamHeader()
Description copied from class:AbstractMarshallerFactoryGet 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:
getDefaultStreamHeaderin classAbstractMarshallerFactory- Returns:
- the stream header
-
getDefaultVersion
protected int getDefaultVersion()
Description copied from class:AbstractMarshallerFactoryGet the default version, which is used if none was configured. This base implementation returns -1.- Overrides:
getDefaultVersionin classAbstractMarshallerFactory- Returns:
- the default version to use
-
createUnmarshaller
public Unmarshaller createUnmarshaller(MarshallingConfiguration configuration) throws java.io.IOException
Description copied from interface:MarshallerFactoryCreate an unmarshaller from this configuration.- Specified by:
createUnmarshallerin interfaceMarshallerFactory- Parameters:
configuration- the marshalling configuration to use- Returns:
- an unmarshaller
- Throws:
java.io.IOException- if an error occurs
-
createMarshaller
public Marshaller createMarshaller(MarshallingConfiguration configuration) throws java.io.IOException
Description copied from interface:MarshallerFactoryCreate a marshaller from this configuration.- Specified by:
createMarshallerin interfaceMarshallerFactory- Parameters:
configuration- the marshalling configuration to use- Returns:
- a marshaller
- Throws:
java.io.IOException- if an error occurs
-
-