Package 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 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 Summary
Constructors Constructor Description BaseDvdMrl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseDvdMrl
angle(int angle)
Set the camera angle.BaseDvdMrl
chapter(int chapter)
Set the chapter number.BaseDvdMrl
device(String device)
Set the DVD device.BaseDvdMrl
title(int title)
Set the DVD title number.BaseDvdMrl
type(String type)
Set the DVD access type.String
value()
Get the media resource locator value
-
-
-
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
-
-