public class Utils
extends java.lang.Object
| 构造器和说明 |
|---|
Utils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
close(java.io.Closeable closeable) |
static long |
contentLength(<any> response) |
static java.lang.String |
formatSize(long size) |
static long |
GMTToLong(java.lang.String GMT) |
static void |
installApk(android.content.Context context,
java.io.File file) |
static boolean |
isNullOrUnsubscribed(Subscription subscription) |
static java.lang.String |
lastModify(<any> response) |
static java.lang.String |
longToGMT(long lastModify) |
static boolean |
notSupportRange(<any> response) |
static boolean |
serverFileChanged(<any> resp) |
static boolean |
serverFileNotChange(<any> resp) |
static java.lang.String |
transferEncoding(<any> response) |
static void |
unSubscribe(Subscription subscription) |
public static java.lang.String longToGMT(long lastModify)
public static long GMTToLong(java.lang.String GMT)
throws java.text.ParseException
java.text.ParseExceptionpublic static void close(java.io.Closeable closeable)
throws java.io.IOException
java.io.IOExceptionpublic static void unSubscribe(Subscription subscription)
public static boolean isNullOrUnsubscribed(Subscription subscription)
public static java.lang.String lastModify(<any> response)
public static long contentLength(<any> response)
public static java.lang.String transferEncoding(<any> response)
public static boolean notSupportRange(<any> response)
public static boolean serverFileChanged(<any> resp)
public static boolean serverFileNotChange(<any> resp)
public static void installApk(android.content.Context context,
java.io.File file)
public static java.lang.String formatSize(long size)