Package one.nio.util

Class Utf8

java.lang.Object
one.nio.util.Utf8

public final class Utf8 extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    indexOf(byte[] needle, byte[] haystack)
     
    static int
    indexOf(byte[] needle, byte[] haystack, int offset, int length)
     
    static int
    indexOf(byte c, byte[] haystack)
     
    static int
    indexOf(byte c, byte[] haystack, int offset, int length)
     
    static int
    length(char[] c, int length)
     
    static int
     
    static long
    parseLong(byte[] buf)
     
    static long
    parseLong(byte[] buf, int offset, int length)
     
    static String
    read(byte[] buf, int start, int length)
     
    static String
    read(Object obj, long start, int length)
     
    static boolean
    startsWith(byte[] fragment, byte[] buf)
     
    static boolean
    startsWith(byte[] fragment, byte[] buf, int offset)
     
    static boolean
    startsWith(byte[] fragment, byte[] buf, int offset, int length)
     
    static byte[]
     
    static String
    toString(byte[] buf)
     
    static int
    write(char[] c, int length, byte[] buf, int start)
     
    static int
    write(char[] c, int length, Object obj, long start)
     
    static int
    write(String s, byte[] buf, int start)
     
    static int
    write(String s, int stringStart, int maxChars, byte[] buf, int bufferStart)
     
    static int
    write(String s, int inStart, int inCount, Object obj, long outStart)
     
    static int
    write(String s, Object obj, long start)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Utf8

      public Utf8()
  • Method Details

    • length

      public static int length(String s)
    • length

      public static int length(char[] c, int length)
    • write

      public static int write(String s, byte[] buf, int start)
    • write

      public static int write(String s, int stringStart, int maxChars, byte[] buf, int bufferStart)
    • write

      public static int write(String s, Object obj, long start)
    • write

      public static int write(String s, int inStart, int inCount, Object obj, long outStart)
    • write

      public static int write(char[] c, int length, byte[] buf, int start)
    • write

      public static int write(char[] c, int length, Object obj, long start)
    • read

      public static String read(byte[] buf, int start, int length)
    • read

      public static String read(Object obj, long start, int length)
    • toBytes

      public static byte[] toBytes(String s)
    • toString

      public static String toString(byte[] buf)
    • 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)