Marshalling API version 1.0.0.GA

org.jboss.marshalling
Class AbstractExternalizer

java.lang.Object
  extended by org.jboss.marshalling.AbstractExternalizer
All Implemented Interfaces:
Serializable, Externalizer

public abstract class AbstractExternalizer
extends Object
implements Externalizer

An externalizer base class which handles object creation in a default fashion.

See Also:
Serialized Form

Constructor Summary
AbstractExternalizer()
           
 
Method Summary
 Object createExternal(Class<?> subjectType, ObjectInput input, Creator defaultCreator)
          Create an instance of a type using the provided creator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.marshalling.Externalizer
readExternal, writeExternal
 

Constructor Detail

AbstractExternalizer

public AbstractExternalizer()
Method Detail

createExternal

public Object createExternal(Class<?> subjectType,
                             ObjectInput input,
                             Creator defaultCreator)
                      throws IOException,
                             ClassNotFoundException
Create an instance of a type using the provided creator.

Specified by:
createExternal in interface Externalizer
Parameters:
subjectType - the type to create
input - the object input
defaultCreator - the creator
Returns:
a new instance
Throws:
IOException - if an I/O error occurs
ClassNotFoundException - if the class could not be located

Marshalling API version 1.0.0.GA

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