public class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static int |
byteArray2Int(byte[] b) |
static long |
byteArray2Long(byte[] b) |
static boolean |
hasBinaryContent(String contentType) |
static boolean |
hasPlainTextContent(String contentType) |
static byte[] |
int2ByteArray(int value) |
static byte[] |
long2ByteArray(long l) |
static void |
putIntInByteArray(int value,
byte[] buf,
int offset) |
public static byte[] long2ByteArray(long l)
public static byte[] int2ByteArray(int value)
public static void putIntInByteArray(int value,
byte[] buf,
int offset)
public static int byteArray2Int(byte[] b)
public static long byteArray2Long(byte[] b)
public static boolean hasBinaryContent(String contentType)
public static boolean hasPlainTextContent(String contentType)
Copyright © 2017. All rights reserved.