|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.ObjectAbstractCodingDevice
public abstract class AbstractCodingDevice
Abstract class AbstractCodingDevice represent common type of Coding device. Saves value of key.
| Constructor Summary | |
|---|---|
AbstractCodingDevice(String key)
Constructor |
|
| Method Summary | |
|---|---|
abstract String |
decode(String text)
Decodes text with the key |
abstract String |
encode(String text)
Encodes text with the key |
String |
getKey()
Get key value |
void |
setKey(String key)
Set up key value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCodingDevice(String key)
key - is coding passphrase| Method Detail |
|---|
public abstract String decode(String text)
CodingDevice
decode in interface CodingDevicetext - text to decoded
public abstract String encode(String text)
CodingDevice
encode in interface CodingDevicetext - text to be encoded
public String getKey()
getKey in interface CodingDevicepublic void setKey(String key)
setKey in interface CodingDevicekey - is coding passphrase
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||