Class ManifestDocumentBinding


  • public class ManifestDocumentBinding
    extends Object
    This class is a helper utility for binding ChunksManifest objects to a ChunksManifest xml document.
    Author:
    Andrew Woods Date: Feb 9, 2010
    • Method Detail

      • createManifestFrom

        public static ChunksManifest createManifestFrom​(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 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