net.sf.jmorse
Class AbstractMorseWriter

java.lang.Object
  extended by net.sf.jmorse.AbstractMorseWriter
All Implemented Interfaces:
MorseWriter
Direct Known Subclasses:
AudioMorseWriter

public abstract class AbstractMorseWriter
extends Object
implements MorseWriter

Author:
Enrique Lara

Field Summary
protected  int wpm
           
 
Constructor Summary
AbstractMorseWriter()
           
AbstractMorseWriter(Locale locale)
           
 
Method Summary
 int getWpm()
           
 void setLocale(Locale locale)
           
 void setWpm(int wpm)
           
protected  String toMorse(char c)
           
protected  String toMorse(char[] msg, int len)
           
 void write(char[] msg, int len)
           
 void write(String msg)
           
protected abstract  void writeMorse(char[] msg, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wpm

protected int wpm
Constructor Detail

AbstractMorseWriter

public AbstractMorseWriter()

AbstractMorseWriter

public AbstractMorseWriter(Locale locale)
Method Detail

getWpm

public int getWpm()

setWpm

public void setWpm(int wpm)

setLocale

public void setLocale(Locale locale)

toMorse

protected String toMorse(char c)
                  throws MissingResourceException
Throws:
MissingResourceException

toMorse

protected String toMorse(char[] msg,
                         int len)
                  throws MissingResourceException
Throws:
MissingResourceException

write

public void write(String msg)
Specified by:
write in interface MorseWriter

write

public void write(char[] msg,
                  int len)
Specified by:
write in interface MorseWriter

writeMorse

protected abstract void writeMorse(char[] msg,
                                   int len)


Copyright © 2006-2010. All Rights Reserved.