Class Utils

java.lang.Object
robaho.net.httpserver.http2.Utils

public class Utils extends Object
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • convertToInt

      public static int convertToInt(byte[] bytes, int off) throws Exception
      Throws:
      Exception
    • convertToInt

      public static int convertToInt(byte[] bytes, int off, int length) throws Exception
      Throws:
      Exception
    • convertToLong

      public static long convertToLong(byte[] bytes, int off, int length) throws Exception
      Throws:
      Exception
    • convertToBinary

      public static void convertToBinary(byte[] buffer, int pos, int input)
    • convertToBinary

      public static void convertToBinary(byte[] buffer, int pos, int input, int length)
    • writeBinary

      public static void writeBinary(OutputStream os, int input) throws IOException
      Throws:
      IOException
    • writeBinary

      public static void writeBinary(OutputStream os, int input, int length) throws IOException
      Throws:
      IOException
    • combineByteArrays

      public static byte[] combineByteArrays(byte[]... blocks)
    • combineByteArrays

      public static byte[] combineByteArrays(List<byte[]> blocks)
    • combineByteArrays

      public static byte[] combineByteArrays(List<byte[]> array1, List<byte[]> array2)