Class PlayClip

java.lang.Object
  extended by PlayClip
All Implemented Interfaces:
EventListener, LineListener

public class PlayClip
extends Object
implements LineListener


Field Summary
private  Clip clip
           
private  DecimalFormat df
           
private static org.apache.log4j.Logger logger
           
private static String SOUND_DIR
           
 
Constructor Summary
PlayClip(String fnm)
           
 
Method Summary
private  void checkDuration()
           
private  void loadClip(String fnm)
           
static void main(String[] args)
           
private  void play()
           
 void update(LineEvent lineEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final org.apache.log4j.Logger logger

SOUND_DIR

private static final String SOUND_DIR
See Also:
Constant Field Values

clip

private Clip clip

df

private DecimalFormat df
Constructor Detail

PlayClip

public PlayClip(String fnm)
Method Detail

loadClip

private void loadClip(String fnm)

checkDuration

private void checkDuration()

play

private void play()

update

public void update(LineEvent lineEvent)
Specified by:
update in interface LineListener

main

public static void main(String[] args)


Copyright © 2011-2012 Sahits GmbH. All Rights Reserved.