public class CacheParser
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CacheParser.PoolingStream |
| 限定符和类型 | 字段和说明 |
|---|---|
static java.util.TimeZone |
GMT |
static java.lang.String |
PATTERN_ASCTIME |
static java.lang.String |
PATTERN_RFC1036 |
static java.lang.String |
PATTERN_RFC1123 |
| 构造器和说明 |
|---|
CacheParser() |
| 限定符和类型 | 方法和说明 |
|---|---|
static java.lang.String |
formatDateAsEpoch(long time) |
static CacheEntry |
newEntry(alexclin.httplite.url.cache.DiskLruCache.Snapshot snapshot) |
static CacheEntry |
newEntry(alexclin.httplite.url.cache.DiskLruCache.Snapshot snapshot,
ByteArrayPool pool,
Request request) |
static CacheEntry |
parseCacheEntry(Response response,
CacheParser.PoolingStream poolingStream,
long length) |
static long |
parseDateAsEpoch(java.lang.String dateStr)
Parse date in RFC1123 format, and return its value as epoch
|
static void |
writeEntryTo(CacheEntry entry,
alexclin.httplite.url.cache.DiskLruCache.Editor editor) |
public static final java.lang.String PATTERN_RFC1123
public static final java.lang.String PATTERN_RFC1036
public static final java.lang.String PATTERN_ASCTIME
public static final java.util.TimeZone GMT
public static CacheEntry parseCacheEntry(Response response, CacheParser.PoolingStream poolingStream, long length)
public static long parseDateAsEpoch(java.lang.String dateStr)
public static java.lang.String formatDateAsEpoch(long time)
public static CacheEntry newEntry(alexclin.httplite.url.cache.DiskLruCache.Snapshot snapshot) throws java.io.IOException
java.io.IOExceptionpublic static CacheEntry newEntry(alexclin.httplite.url.cache.DiskLruCache.Snapshot snapshot, ByteArrayPool pool, Request request) throws java.io.IOException
java.io.IOExceptionpublic static void writeEntryTo(CacheEntry entry, alexclin.httplite.url.cache.DiskLruCache.Editor editor) throws java.io.IOException
java.io.IOException