|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lejos.nxt.remote.AsciizCodec
public class AsciizCodec
Methods to encode and decode ASCIIZ.
ASCIIZ is ASCII terminated by Zero.
WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS.
DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.
Method Summary | |
---|---|
static String |
decode(byte[] bytes)
Convert an ASCIIZ byte array to a string |
static byte[] |
encode(String str)
Encode a string as ASCIIZ |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static byte[] encode(String str) throws UnsupportedEncodingException
str
- the string
UnsupportedEncodingException
public static String decode(byte[] bytes) throws UnsupportedEncodingException
bytes
- the byte array
UnsupportedEncodingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |