|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlejos.nxt.remote.AsciizCodec
public class AsciizCodec
Methods to encode and decode ASCIIZ. ASCIIZ is ASCII terminated by Zero.
| Method Summary | |
|---|---|
static java.lang.String |
decode(byte[] bytes)
Convert an ASCIIZ byte array to a string |
static byte[] |
encode(java.lang.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(java.lang.String str)
throws java.io.UnsupportedEncodingException
str - the string
java.io.UnsupportedEncodingException
public static java.lang.String decode(byte[] bytes)
throws java.io.UnsupportedEncodingException
bytes - the byte array
java.io.UnsupportedEncodingException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||