org.xnap.util.launcher
Class ITunesPlayer

java.lang.Object
  extended by org.xnap.util.launcher.DefaultLauncher
      extended by org.xnap.util.launcher.DefaultPlayer
          extended by org.xnap.util.launcher.ITunesPlayer
All Implemented Interfaces:
Launcher, Player

public class ITunesPlayer
extends DefaultPlayer

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

ITunesPlayer

public ITunesPlayer()
Method Detail

enqueue

public void enqueue(java.io.File file)
             throws java.io.IOException
Description copied from class: DefaultPlayer
Executes DefaultLauncher.getCommand(), passing file as an argument.

Specified by:
enqueue in interface Player
Overrides:
enqueue in class DefaultPlayer
Throws:
java.io.IOException

open

public void open(java.io.File file)
          throws java.io.IOException
Description copied from class: DefaultPlayer
Calls DefaultPlayer.stop() and DefaultPlayer.enqueue(File).

Specified by:
open in interface Launcher
Overrides:
open in class DefaultPlayer
Throws:
java.io.IOException

isEditable

public boolean isEditable()
Description copied from class: DefaultLauncher
Returns true.

Specified by:
isEditable in interface Launcher
Overrides:
isEditable in class DefaultLauncher

start

public void start()
           throws java.io.IOException
Description copied from class: DefaultPlayer
Executes DefaultLauncher.getCommand().

Specified by:
start in interface Player
Overrides:
start in class DefaultPlayer
Throws:
java.io.IOException

stop

public void stop()
Description copied from class: DefaultPlayer
Calls destory() on the player process, if running.

Specified by:
stop in interface Player
Overrides:
stop in class DefaultPlayer


Copyright © 2001-2005 XNap Team. All Rights Reserved.