uk.co.caprica.vlcj.mrl
Class BaseDvdMrl
java.lang.Object
uk.co.caprica.vlcj.mrl.BaseDvdMrl
- All Implemented Interfaces:
- Mrl
- Direct Known Subclasses:
- DvdMrl, SimpleDvdMrl
public class BaseDvdMrl
- extends java.lang.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")
.rawDevice("/dev/cdrom0")
.title(0)
.chapter(3)
.angle(1)
.value();
This will generate "dvdsimple:///media/dvd/@dev/cdrom@0:3:1"
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseDvdMrl
public BaseDvdMrl()
type
public BaseDvdMrl type(java.lang.String type)
device
public BaseDvdMrl device(java.lang.String device)
rawDevice
public BaseDvdMrl rawDevice(java.lang.String rawDevice)
title
public BaseDvdMrl title(int title)
chapter
public BaseDvdMrl chapter(int chapter)
angle
public BaseDvdMrl angle(int angle)
value
public java.lang.String value()
- Description copied from interface:
Mrl
- Get the media resource locator value
- Specified by:
value
in interface Mrl
- Returns:
- media resource locator