public final class Strings extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
findTermination(byte[] buffer,
int bufferIndex,
int maxLen) |
static int |
findUNITermination(byte[] buffer,
int bufferIndex,
int maxLen) |
static String |
fromOEMBytes(byte[] src,
int srcIndex,
int len,
Configuration config) |
static String |
fromUNIBytes(byte[] src,
int srcIndex,
int len) |
static byte[] |
getASCIIBytes(String str) |
static byte[] |
getBytes(String str,
Charset encoding) |
static byte[] |
getOEMBytes(String str,
Configuration config) |
static byte[] |
getUNIBytes(String str) |
public static byte[] getBytes(String str, Charset encoding)
str - encoding - public static byte[] getUNIBytes(String str)
str - public static byte[] getASCIIBytes(String str)
str - public static byte[] getOEMBytes(String str, Configuration config)
str - config - public static String fromUNIBytes(byte[] src, int srcIndex, int len)
src - srcIndex - len - public static int findUNITermination(byte[] buffer,
int bufferIndex,
int maxLen)
buffer - bufferIndex - maxLen - public static String fromOEMBytes(byte[] src, int srcIndex, int len, Configuration config)
src - srcIndex - len - config - public static int findTermination(byte[] buffer,
int bufferIndex,
int maxLen)
buffer - bufferIndex - maxLen - Copyright © 2018. All rights reserved.