org.xnap.util.launcher
Class JMFPlayer

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

public class JMFPlayer
extends DefaultPlayer

JMF 2.1-based MP3 audio player. Note that this class uses nothing but reflection to run the JMF code so that this class can be loaded without dependencies on the JMF jar being installed on the user's system.

See Also:
JMF

Constructor Summary
JMFPlayer()
           
 
Method Summary
 void enqueue(java.io.File file)
          Executes DefaultLauncher.getCommand(), passing file as an argument.
 boolean isEditable()
          Returns true.
 boolean isEnabled()
          Returns true.
 void start()
          Does nothing.
 void stop()
          Calls destory() on the player process, if running.
 
Methods inherited from class org.xnap.util.launcher.DefaultPlayer
canPlay, open, open
 
Methods inherited from class org.xnap.util.launcher.DefaultLauncher
getCommand, getKey, getName, 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, setCommand
 

Constructor Detail

JMFPlayer

public JMFPlayer()
Method Detail

isEditable

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

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

isEnabled

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

Specified by:
isEnabled in interface Launcher
Overrides:
isEnabled 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

start

public void start()
           throws java.io.IOException
Does nothing.

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.