JBoss Marshalling 1.3.0.GA

org.jboss.marshalling.serial
Class SerialMarshallerFactory

java.lang.Object
  extended by org.jboss.marshalling.AbstractMarshallerFactory
      extended by org.jboss.marshalling.serial.SerialMarshallerFactory
All Implemented Interfaces:
MarshallerFactory

public final class SerialMarshallerFactory
extends AbstractMarshallerFactory
implements MarshallerFactory


Constructor Summary
SerialMarshallerFactory()
          Construct a new instance of a River marshaller factory.
 
Method Summary
 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, getDefaultExternalizedCreator, getDefaultObjectResolver, getDefaultObjectTable, getDefaultSerializedCreator, getMinimumBufferSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialMarshallerFactory

public SerialMarshallerFactory()
Construct a new instance of a River marshaller factory.

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 class AbstractMarshallerFactory
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 class AbstractMarshallerFactory
Returns:
the default version to use

createUnmarshaller

public Unmarshaller createUnmarshaller(MarshallingConfiguration configuration)
                                throws java.io.IOException
Description copied from interface: MarshallerFactory
Create an unmarshaller from this configuration.

Specified by:
createUnmarshaller in interface MarshallerFactory
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: MarshallerFactory
Create a marshaller from this configuration.

Specified by:
createMarshaller in interface MarshallerFactory
Parameters:
configuration - the marshalling configuration to use
Returns:
a marshaller
Throws:
java.io.IOException - if an error occurs

JBoss Marshalling 1.3.0.GA

Copyright © 2011 JBoss, a division of Red Hat, Inc.