org.duracloud.chunk.manifest.xml
Class ManifestDocumentBinding

java.lang.Object
  extended by org.duracloud.chunk.manifest.xml.ManifestDocumentBinding

public class ManifestDocumentBinding
extends java.lang.Object

This class is a helper utility for binding ChunksManifest objects to a ChunksManifest xml document.

Author:
Andrew Woods Date: Feb 9, 2010

Constructor Summary
ManifestDocumentBinding()
           
 
Method Summary
static java.lang.String createDocumentFrom(ChunksManifestBean manifest)
          This method serializes the arg ChunksManifest object into an xml document.
static ChunksManifest createManifestFrom(java.io.InputStream xml)
          This method binds a ChunksManifest object to the content of the arg xml.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManifestDocumentBinding

public ManifestDocumentBinding()
Method Detail

createManifestFrom

public static ChunksManifest createManifestFrom(java.io.InputStream xml)
This method binds a ChunksManifest object to the content of the arg xml.

Parameters:
xml - manifest document to be bound to ChunksManifest object
Returns:
ChunksManifest object

createDocumentFrom

public static java.lang.String createDocumentFrom(ChunksManifestBean manifest)
This method serializes the arg ChunksManifest object into an xml document.

Parameters:
manifest - ChunksManifest object to be serialized
Returns:
ChunksManifest xml document


Copyright © 2009-2011 DuraSpace. All Rights Reserved.