IMorseDecoder
public interface IMorseDecoder
Declares functionality to decipher Morse code.
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
morseText | java.lang.String | Text 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:
Parameter | Type | Description |
---|---|---|
morseText | java.lang.String | Text encoded by Morse code, i.e. text like “… — …"(SOS). |
alphabet | MorseAlphabets | Alphabet 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:
Parameter | Type | Description |
---|---|---|
morseText | java.lang.String | Text encoded by Morse code, i.e. text like “… — …"(SOS). |
alphabet | MorseAlphabets | Alphabet of Morse code. |
inputSeparator | char | Symbol 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:
Parameter | Type | Description |
---|---|---|
morseText | java.lang.String | Text encoded by Morse code, i.e. text like “… — …"(SOS). |
alphabet | MorseAlphabets | Alphabet of Morse code. |
inputSeparator | char | Symbol used to separate words in encoded text. |
outputSeparator | char | Symbol used to separate words in decoded text. |
Returns: java.lang.String - Decoded text.