public static ChunksManifest createManifestFrom ( InputStream xml ) { try { ChunksManifestDocument doc = ChunksManifestDocument . Factory . parse ( xml ) ; return ManifestElementReader . createManifestFrom ( doc ) ; } catch ( XmlException e ) { throw new DuraCloudRuntimeException ( e ) ; } catch ( IOException e ) { throw new DuraCloudRuntimeException ( e ) ; } }
This method binds a ChunksManifest object to the content of the arg xml .