|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TEncodingStrategy
TEncodingStrategy is the interface that defines the operations needed for an encoding strategy. These comprise encoding as well as decoding operations.
Method Summary | |
---|---|
byte[] |
decode(byte[] data)
This method decodes the given encoded byte array according a concrete decoding algorithm. |
java.lang.String |
decode(java.lang.String str)
This method decodes the given encoded string according a concrete decoding algorithm. |
byte[] |
encode(byte[] data)
This method encodes the given byte array according a concrete encoding |
java.lang.String |
encode(java.lang.String str)
This method encodes the given string according a concrete encoding algorithm. |
Method Detail |
---|
java.lang.String encode(java.lang.String str)
str
- the string to encode.
byte[] encode(byte[] data)
data
- the byte array to encode.
java.lang.String decode(java.lang.String str)
str
- the encoded string.
byte[] decode(byte[] data)
data
- the encoded byte array.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |