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
FieldsModifier and TypeFieldDescriptionprivate static final StreamHeaderprivate final SerializableClassRegistry -
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 StreamHeaderGet the default stream header, which is used if none was configured.protected intGet the default version, which is used if none was configured.
-
Field Details
-
registry
-
defaultHeader
-
-
Constructor Details
-
SerialMarshallerFactory
public SerialMarshallerFactory()Construct a new instance of a River marshaller factory.
-
-
Method Details
-
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
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:
IOException- if an error occurs
-
createMarshaller
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:
IOException- if an error occurs
-