org.xnap.util.launcher
Class NoatunPlayer

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

public class NoatunPlayer
extends DefaultPlayer

Provides player support for Noatun through dcop.


Field Summary
 
Fields inherited from class org.xnap.util.launcher.DefaultPlayer
player
 
Constructor Summary
NoatunPlayer()
           
 
Method Summary
 boolean canPlay(java.io.File f)
          Returns true for mp3 files.
 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
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

NoatunPlayer

public NoatunPlayer()
Method Detail

canPlay

public boolean canPlay(java.io.File f)
Description copied from class: DefaultPlayer
Returns true for mp3 files.

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

isEditable

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

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

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.