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
FieldsModifier and TypeFieldDescriptionprivate static final StreamHeader
private 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 StreamHeader
Get the default stream header, which is used if none was configured.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, getMinimumBufferSize
-
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: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
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
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
-