public class MediaPackageElementBuilderImpl extends Object implements MediaPackageElementBuilder
| Constructor and Description |
|---|
MediaPackageElementBuilderImpl() |
| Modifier and Type | Method and Description |
|---|---|
MediaPackageElement |
elementFromManifest(Node node,
MediaPackageSerializer serializer)
Creates a media package element from the DOM element.
|
MediaPackageElement |
elementFromURI(URI uri)
Creates a media package element from the given file that was previously accepted.
|
MediaPackageElement |
elementFromURI(URI uri,
MediaPackageElement.Type type,
MediaPackageElementFlavor flavor)
Creates a media package element from the given file that was previously accepted, while
type and
flavor may be taken as strong hints and may both be null. |
MediaPackageElement |
newElement(MediaPackageElement.Type type,
MediaPackageElementFlavor flavor)
Creates a new media package elment of the specified type.
|
public MediaPackageElement elementFromURI(URI uri) throws UnsupportedElementException
MediaPackageElementBuilderSince only the file is given, it is possible, that the best builder plugin cannot be uniquely identified and may require additional contraints, e. g. a matching filename. Be sure to check the documentation of the corresponding plugin for details.
elementFromURI in interface MediaPackageElementBuilderuri - the element locationUnsupportedElementException - if creating the media package element failsMediaPackageElementBuilder.elementFromURI(URI)public MediaPackageElement elementFromURI(URI uri, MediaPackageElement.Type type, MediaPackageElementFlavor flavor) throws UnsupportedElementException
MediaPackageElementBuildertype and
flavor may be taken as strong hints and may both be null.
If only the file is given, it is possible, that the best suited builder plugin cannot be uniquely identified and may require additional contraints, e. g. a matching filename. Be sure to check the documentation of the corresponding builder plugin for details.
elementFromURI in interface MediaPackageElementBuilderuri - the element locationtype - the element typeflavor - the element flavorUnsupportedElementException - if creating the media package element failsMediaPackageElementBuilder.elementFromURI(URI,
org.opencastproject.mediapackage.MediaPackageElement.Type ,
org.opencastproject.mediapackage.MediaPackageElementFlavor)public MediaPackageElement elementFromManifest(Node node, MediaPackageSerializer serializer) throws UnsupportedElementException
MediaPackageElementBuilderelementFromManifest in interface MediaPackageElementBuildernode - the DOM nodeserializer - the media package serializerUnsupportedElementException - if reading the file from manifest failsMediaPackageElementBuilder.elementFromManifest(org.w3c.dom.Node,
org.opencastproject.mediapackage.MediaPackageSerializer)public MediaPackageElement newElement(MediaPackageElement.Type type, MediaPackageElementFlavor flavor)
MediaPackageElementBuildernewElement in interface MediaPackageElementBuildertype - the element typeflavor - the element flavorMediaPackageElementBuilder.newElement(org.opencastproject.mediapackage.MediaPackageElement.Type
, org.opencastproject.mediapackage.MediaPackageElementFlavor)Copyright © 2009–2021 Opencast Project. All rights reserved.