Class BaseDvdMrl

  • All Implemented Interfaces:
    Mrl
    Direct Known Subclasses:
    DvdMrl, SimpleDvdMrl

    public abstract class BaseDvdMrl
    extends Object
    implements Mrl
    Base implementation of a media resource locator for DVD MRLs.

    This class provides a fluent API for initialising the MRL, e.g.

     String mrl = new BaseDvdMrl().type("dvdsimple").
                                  .device("/media/dvd")
                                  .title(0)
                                  .chapter(3)
                                  .angle(1)
                                  .value();
     
    This will generate "dvdsimple:///media/dvd/@dev/cdrom#0:3:1".
    • Constructor Detail

      • BaseDvdMrl

        public BaseDvdMrl()
    • Method Detail

      • type

        public final BaseDvdMrl type​(String type)
        Set the DVD access type.
        Parameters:
        type - type, e.g. dvd or dvdsimple
        Returns:
        this
      • device

        public final BaseDvdMrl device​(String device)
        Set the DVD device.
        Parameters:
        device - DVD device
        Returns:
        this
      • title

        public final BaseDvdMrl title​(int title)
        Set the DVD title number.
        Parameters:
        title - DVD title number
        Returns:
        this
      • chapter

        public final BaseDvdMrl chapter​(int chapter)
        Set the chapter number.
        Parameters:
        chapter - chapter number
        Returns:
        this
      • angle

        public final BaseDvdMrl angle​(int angle)
        Set the camera angle.
        Parameters:
        angle - camera angle
        Returns:
        this
      • value

        public final String value()
        Description copied from interface: Mrl
        Get the media resource locator value
        Specified by:
        value in interface Mrl
        Returns:
        media resource locator