public class Utils extends Object
| 构造器和说明 |
|---|
Utils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
getBytes(String... strings) |
static Map<String,String> |
getHeaderParams(String headerVal) |
static Headers |
readHeaders(InputStream in) |
static String |
readLine(InputStream in) |
static String |
readToken(InputStream in,
int delim,
String enc,
int maxLength) |
static String[] |
split(String str,
String delimiters,
int limit) |
static String |
trimLeft(String s,
char c) |
static String |
trimRight(String s,
char c) |
public static String readToken(InputStream in, int delim, String enc, int maxLength) throws IOException
IOExceptionpublic static String readLine(InputStream in) throws IOException
IOExceptionpublic static byte[] getBytes(String... strings)
public static Headers readHeaders(InputStream in) throws IOException
IOExceptionCopyright © 2021. All rights reserved.