public class AsciizCodec
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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
|
public static byte[] encode(java.lang.String str)
throws java.io.UnsupportedEncodingException
str - the stringjava.io.UnsupportedEncodingExceptionpublic static java.lang.String decode(byte[] bytes)
throws java.io.UnsupportedEncodingException
bytes - the byte arrayjava.io.UnsupportedEncodingException