public abstract class HTTPUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HTTPUtil.InterceptCommon |
static class |
HTTPUtil.InterceptRequest |
static class |
HTTPUtil.InterceptResponse |
| Modifier and Type | Field and Description |
|---|---|
static java.nio.charset.Charset |
ASCII |
static java.nio.charset.Charset |
UTF8 |
| Constructor and Description |
|---|
HTTPUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(java.lang.Object obj1,
java.lang.Object obj2) |
static java.io.File |
fillTempFile(java.lang.String base,
java.lang.String content) |
static byte[] |
readbinaryfile(java.io.InputStream stream) |
static boolean |
schemeEquals(java.lang.String s1,
java.lang.String s2) |
public static final java.nio.charset.Charset UTF8
public static final java.nio.charset.Charset ASCII
public static byte[] readbinaryfile(java.io.InputStream stream)
throws java.io.IOException
java.io.IOExceptionpublic static java.io.File fillTempFile(java.lang.String base,
java.lang.String content)
throws java.io.IOException
java.io.IOExceptionpublic static boolean equals(java.lang.Object obj1,
java.lang.Object obj2)
true if the objects are equal or both nullpublic static boolean schemeEquals(java.lang.String s1,
java.lang.String s2)
true if the objects are equal or both null