Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

irate.client
Class ExternalPlayer  view ExternalPlayer download ExternalPlayer.java

java.lang.Object
  extended byirate.client.ExternalPlayer
All Implemented Interfaces:
Player
Direct Known Subclasses:
MadplayPlayer

public class ExternalPlayer
extends java.lang.Object
implements Player


Field Summary
private  int action
           
private  int ACTION_CLOSE
           
private  int ACTION_PAUSE
           
private  int ACTION_PLAY
           
private  java.lang.String name
           
private  java.lang.String path
           
private  boolean paused
           
private  long playTime
           
private  java.lang.Process process
           
 
Constructor Summary
ExternalPlayer(java.lang.String name, java.lang.String path)
           
ExternalPlayer(java.lang.String name, java.lang.String[] paths)
           
 
Method Summary
 void close()
           
 java.lang.String[] formatResumeArgument()
           
 java.lang.String getName()
           
protected  long getPlayTime()
          Get the number of milliseconds of play time so far for the song currently being played.
 boolean isPaused()
           
 void play(java.io.File file)
           
 void setPaused(boolean paused)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name

path

private java.lang.String path

ACTION_PAUSE

private final int ACTION_PAUSE
See Also:
Constant Field Values

ACTION_PLAY

private final int ACTION_PLAY
See Also:
Constant Field Values

ACTION_CLOSE

private final int ACTION_CLOSE
See Also:
Constant Field Values

action

private int action

paused

private boolean paused

process

private java.lang.Process process

playTime

private long playTime
Constructor Detail

ExternalPlayer

public ExternalPlayer(java.lang.String name,
                      java.lang.String path)
               throws java.io.FileNotFoundException

ExternalPlayer

public ExternalPlayer(java.lang.String name,
                      java.lang.String[] paths)
               throws java.io.FileNotFoundException
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Player

setPaused

public void setPaused(boolean paused)
Specified by:
setPaused in interface Player

isPaused

public boolean isPaused()
Specified by:
isPaused in interface Player

formatResumeArgument

public java.lang.String[] formatResumeArgument()

getPlayTime

protected long getPlayTime()
Get the number of milliseconds of play time so far for the song currently being played.


play

public void play(java.io.File file)
          throws PlayerException
Specified by:
play in interface Player

close

public void close()
Specified by:
close in interface Player