IMorseDecoder

public interface IMorseDecoder

Declares functionality to decipher Morse code.

Methods

MethodDescription
decode(String morseText)Deciphers Morse code.
decode(String morseText, MorseAlphabets alphabet)Deciphers Morse code.
decode(String morseText, MorseAlphabets alphabet, char inputSeparator)Deciphers Morse code.
decode(String morseText, MorseAlphabets alphabet, char inputSeparator, char outputSeparator)Deciphers Morse code.

decode(String morseText)

public abstract String decode(String morseText)

Deciphers Morse code.

Parameters:

ParameterTypeDescription
morseTextjava.lang.StringText encoded by Morse code, i.e. text like “… — …"(SOS).

Returns: java.lang.String - Decoded text.

decode(String morseText, MorseAlphabets alphabet)

public abstract String decode(String morseText, MorseAlphabets alphabet)

Deciphers Morse code.

Parameters:

ParameterTypeDescription
morseTextjava.lang.StringText encoded by Morse code, i.e. text like “… — …"(SOS).
alphabetMorseAlphabetsAlphabet of Morse code.

Returns: java.lang.String - Decoded text.

decode(String morseText, MorseAlphabets alphabet, char inputSeparator)

public abstract String decode(String morseText, MorseAlphabets alphabet, char inputSeparator)

Deciphers Morse code.

Parameters:

ParameterTypeDescription
morseTextjava.lang.StringText encoded by Morse code, i.e. text like “… — …"(SOS).
alphabetMorseAlphabetsAlphabet of Morse code.
inputSeparatorcharSymbol used to separate words in encoded text.

Returns: java.lang.String - Decoded text.

decode(String morseText, MorseAlphabets alphabet, char inputSeparator, char outputSeparator)

public abstract String decode(String morseText, MorseAlphabets alphabet, char inputSeparator, char outputSeparator)

Deciphers Morse code.

Parameters:

ParameterTypeDescription
morseTextjava.lang.StringText encoded by Morse code, i.e. text like “… — …"(SOS).
alphabetMorseAlphabetsAlphabet of Morse code.
inputSeparatorcharSymbol used to separate words in encoded text.
outputSeparatorcharSymbol used to separate words in decoded text.

Returns: java.lang.String - Decoded text.