uk.co.caprica.vlcj.mrl
Class BaseDvdMrl

java.lang.Object
  extended by 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".


Constructor Summary
BaseDvdMrl()
           
 
Method Summary
 BaseDvdMrl angle(int angle)
           
 BaseDvdMrl chapter(int chapter)
           
 BaseDvdMrl device(java.lang.String device)
           
 BaseDvdMrl rawDevice(java.lang.String rawDevice)
           
 BaseDvdMrl title(int title)
           
 BaseDvdMrl type(java.lang.String type)
           
 java.lang.String value()
          Get the media resource locator value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseDvdMrl

public BaseDvdMrl()
Method Detail

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

(C)2010 Caprica Software Limited