Marshalling API version 1.0.0.Beta1

org.jboss.marshalling
Class Marshalling

java.lang.Object
  extended by org.jboss.marshalling.Marshalling

public final class Marshalling
extends Object

Static utility methods for simplfying use of marshallers.


Method Summary
static ByteInput createByteInput(InputStream inputStream)
          Create a ByteInput wrapper for an InputStream.
static ByteOutput createByteOutput(OutputStream outputStream)
          Create a ByteOutput wrapper for an OutputStream.
static ClassTable nullClassTable()
          Return the null class table instance.
static ExternalizerFactory nullExternalizerFactory()
          Return the null externalizer factory.
static ObjectResolver nullObjectResolver()
          Return the null object resolver.
static ObjectTable nullObjectTable()
          Return the null object instance table.
static StreamHeader nullStreamHeader()
          Get the default stream header producer, which reads and writes no header at all.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

nullStreamHeader

public static StreamHeader nullStreamHeader()
Get the default stream header producer, which reads and writes no header at all.

Returns:
the default stream header producer

createByteInput

public static ByteInput createByteInput(InputStream inputStream)
Create a ByteInput wrapper for an InputStream.

Parameters:
inputStream - the input stream
Returns:
the byte input wrapper

createByteOutput

public static ByteOutput createByteOutput(OutputStream outputStream)
Create a ByteOutput wrapper for an OutputStream.

Parameters:
outputStream - the output stream
Returns:
the byte output wrapper

nullExternalizerFactory

public static ExternalizerFactory nullExternalizerFactory()
Return the null externalizer factory. This instance does not externalize any classes.

Returns:
the null externalizer

nullObjectResolver

public static ObjectResolver nullObjectResolver()
Return the null object resolver. This instance does not translate objects in any way.

Returns:
the null object resolver

nullObjectTable

public static ObjectTable nullObjectTable()
Return the null object instance table. This instance contains no predefined instances.

Returns:
the null instance table

nullClassTable

public static ClassTable nullClassTable()
Return the null class table instance. This instance contains no predefined classes.

Returns:
the null class table

Marshalling API version 1.0.0.Beta1

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