|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Codec
A standard interface that all codecs must implement. A codec is an object that converts Vectors of DataPacekts to a string The content of the String will depend on the codec used. This string representation can then be send over a HTTP connection.
Method Summary | |
---|---|
Vector |
decode(String encoded)
This method decodes an encoded String to a Vector of DataPackets. |
String |
encode(Vector data)
This method encodes a Vector of DataPackets as a string. |
String |
getName()
This method gets the name of the codec. |
Method Detail |
---|
Vector decode(String encoded)
encoded
- an encoded stringString encode(Vector data)
data
- Vector an encoded stringString getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |