org.xnap.util.launcher
Class XMMSPlayer

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

public class XMMSPlayer
extends DefaultPlayer

Provides player support for XMMS.


Field Summary
 
Fields inherited from class org.xnap.util.launcher.DefaultPlayer
player
 
Constructor Summary
XMMSPlayer()
           
 
Method Summary
 void enqueue(java.io.File file)
          Executes DefaultLauncher.getCommand(), passing file as an argument.
 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, isEditable, 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, isEditable, isEnabled, setCommand
 

Constructor Detail

XMMSPlayer

public XMMSPlayer()
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

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.