sound.recorder
Class AbstractRecorder

java.lang.Object
  extended by java.lang.Thread
      extended by sound.recorder.AbstractRecorder
All Implemented Interfaces:
java.lang.Runnable, Recorder
Direct Known Subclasses:
BufferingRecorder, DirectRecorder

public class AbstractRecorder
extends java.lang.Thread
implements Recorder

User: lyon Date: Oct 16, 2006 Time: 10:33:38 AM Copyright DocJava, Inc. 2005.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AbstractRecorder(javax.sound.sampled.TargetDataLine line, javax.sound.sampled.AudioFileFormat.Type targetType, java.io.File file)
           
 
Method Summary
 void start()
          Starts the recording.
 void stopRecording()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractRecorder

public AbstractRecorder(javax.sound.sampled.TargetDataLine line,
                        javax.sound.sampled.AudioFileFormat.Type targetType,
                        java.io.File file)
Method Detail

start

public void start()
Starts the recording. To accomplish this, (i) the line is started and (ii) the thread is started.

Specified by:
start in interface Recorder
Overrides:
start in class java.lang.Thread

stopRecording

public void stopRecording()
Specified by:
stopRecording in interface Recorder