public class Charsetfunctions extends Object
| Modifier and Type | Field and Description |
|---|---|
static CodingErrorAction |
codingErrorAction |
| Constructor and Description |
|---|
Charsetfunctions() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
asciiBytes(String s) |
static void |
main(String[] args) |
static String |
stringAscii(byte[] bytes) |
static String |
stringAscii(byte[] bytes,
int offset,
int length) |
static String |
stringUtf8(byte[] bytes) |
static String |
stringUtf8(ByteBuffer bytes) |
static byte[] |
utf8Bytes(String s) |
public static CodingErrorAction codingErrorAction
public static byte[] utf8Bytes(String s)
public static byte[] asciiBytes(String s)
public static String stringAscii(byte[] bytes)
public static String stringAscii(byte[] bytes, int offset, int length)
public static String stringUtf8(byte[] bytes) throws InvalidDataException
InvalidDataExceptionpublic static String stringUtf8(ByteBuffer bytes) throws InvalidDataException
InvalidDataExceptionpublic static void main(String[] args) throws InvalidDataException
InvalidDataExceptionCopyright © 2013. All Rights Reserved.