Package one.nio.util
Class Utf8
java.lang.Object
one.nio.util.Utf8
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intindexOf(byte[] needle, byte[] haystack) static intindexOf(byte[] needle, byte[] haystack, int offset, int length) static intindexOf(byte c, byte[] haystack) static intindexOf(byte c, byte[] haystack, int offset, int length) static intlength(char[] c, int length) static intstatic longparseLong(byte[] buf) static longparseLong(byte[] buf, int offset, int length) static Stringread(byte[] buf, int start, int length) static Stringstatic booleanstartsWith(byte[] fragment, byte[] buf) static booleanstartsWith(byte[] fragment, byte[] buf, int offset) static booleanstartsWith(byte[] fragment, byte[] buf, int offset, int length) static byte[]static StringtoString(byte[] buf) static intwrite(char[] c, int length, byte[] buf, int start) static intstatic intstatic intstatic intstatic int
-
Constructor Details
-
Utf8
public Utf8()
-
-
Method Details
-
length
-
length
public static int length(char[] c, int length) -
write
-
write
-
write
-
write
-
write
public static int write(char[] c, int length, byte[] buf, int start) -
write
-
read
-
read
-
toBytes
-
toString
-
indexOf
public static int indexOf(byte c, byte[] haystack) -
indexOf
public static int indexOf(byte c, byte[] haystack, int offset, int length) -
indexOf
public static int indexOf(byte[] needle, byte[] haystack) -
indexOf
public static int indexOf(byte[] needle, byte[] haystack, int offset, int length) -
startsWith
public static boolean startsWith(byte[] fragment, byte[] buf) -
startsWith
public static boolean startsWith(byte[] fragment, byte[] buf, int offset, int length) -
startsWith
public static boolean startsWith(byte[] fragment, byte[] buf, int offset) -
parseLong
public static long parseLong(byte[] buf) -
parseLong
public static long parseLong(byte[] buf, int offset, int length)
-