|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.util.launcher.DefaultLauncher org.xnap.util.launcher.DefaultPlayer org.xnap.util.launcher.ITunesPlayer
public class ITunesPlayer
Provides player support for iTunes on Mac OS X through osascript calls.
Field Summary |
---|
Fields inherited from class org.xnap.util.launcher.DefaultPlayer |
---|
player |
Constructor Summary | |
---|---|
ITunesPlayer()
|
Method Summary | |
---|---|
void |
enqueue(java.io.File file)
Executes DefaultLauncher.getCommand() , passing file as an
argument. |
boolean |
isEditable()
Returns true. |
void |
open(java.io.File file)
Calls DefaultPlayer.stop() and DefaultPlayer.enqueue(File) . |
void |
start()
Executes DefaultLauncher.getCommand() . |
void |
stop()
Calls destory() on the player process, if running. |
Methods inherited from class org.xnap.util.launcher.DefaultPlayer |
---|
canPlay, open |
Methods inherited from class org.xnap.util.launcher.DefaultLauncher |
---|
getCommand, getKey, getName, isEnabled, setCommand |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xnap.util.launcher.Launcher |
---|
getCommand, getKey, getName, isEnabled, setCommand |
Constructor Detail |
---|
public ITunesPlayer()
Method Detail |
---|
public void enqueue(java.io.File file) throws java.io.IOException
DefaultPlayer
DefaultLauncher.getCommand()
, passing file
as an
argument.
enqueue
in interface Player
enqueue
in class DefaultPlayer
java.io.IOException
public void open(java.io.File file) throws java.io.IOException
DefaultPlayer
DefaultPlayer.stop()
and DefaultPlayer.enqueue(File)
.
open
in interface Launcher
open
in class DefaultPlayer
java.io.IOException
public boolean isEditable()
DefaultLauncher
isEditable
in interface Launcher
isEditable
in class DefaultLauncher
public void start() throws java.io.IOException
DefaultPlayer
DefaultLauncher.getCommand()
.
start
in interface Player
start
in class DefaultPlayer
java.io.IOException
public void stop()
DefaultPlayer
destory()
on the player process, if running.
stop
in interface Player
stop
in class DefaultPlayer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |