public class ByteStringUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static Charset |
STRING_ENCODING
For use in the project when using String.getBytes() and making Strings from byte[]
|
| Modifier and Type | Method and Description |
|---|---|
static int |
append(OutputStream out,
CharSequence str,
int start) |
static String |
asString(byte[] buff,
int offset) |
static String |
asString(ByteBuffer buff,
int offset) |
static int |
longestCommonPrefix(CharSequence str1,
CharSequence str2) |
static int |
longestCommonPrefix(CharSequence str1,
CharSequence str2,
int from) |
static int |
strcmp(CharSequence str,
byte[] buff2,
int off2) |
static int |
strcmp(CharSequence str,
ByteBuffer buffer,
int offset) |
static int |
strlen(byte[] buff,
int off) |
static int |
strlen(ByteBuffer buf,
int base) |
public static final Charset STRING_ENCODING
public static String asString(byte[] buff, int offset)
public static String asString(ByteBuffer buff, int offset)
public static int strlen(byte[] buff,
int off)
public static int strlen(ByteBuffer buf, int base)
public static int longestCommonPrefix(CharSequence str1, CharSequence str2)
public static int longestCommonPrefix(CharSequence str1, CharSequence str2, int from)
public static int strcmp(CharSequence str, byte[] buff2, int off2)
public static int strcmp(CharSequence str, ByteBuffer buffer, int offset)
public static int append(OutputStream out, CharSequence str, int start) throws IOException
IOExceptionCopyright © 2018 DataWeb Research. All rights reserved.