java.lang.Object
robaho.net.httpserver.http2.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]combineByteArrays(byte[]... blocks) static byte[]combineByteArrays(List<byte[]> blocks) static byte[]combineByteArrays(List<byte[]> array1, List<byte[]> array2) static voidconvertToBinary(byte[] buffer, int pos, int input) static voidconvertToBinary(byte[] buffer, int pos, int input, int length) static intconvertToInt(byte[] bytes, int off) static intconvertToInt(byte[] bytes, int off, int length) static longconvertToLong(byte[] bytes, int off, int length) static voidwriteBinary(OutputStream os, int input) static voidwriteBinary(OutputStream os, int input, int length)
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
convertToInt
- Throws:
Exception
-
convertToInt
- Throws:
Exception
-
convertToLong
- 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
- Throws:
IOException
-
writeBinary
- Throws:
IOException
-
combineByteArrays
public static byte[] combineByteArrays(byte[]... blocks) -
combineByteArrays
-
combineByteArrays
-