mirror of
https://github.com/zhigang1992/AndroidVideoCache.git
synced 2026-06-17 19:16:07 +08:00
22 lines
465 B
Java
22 lines
465 B
Java
package com.danikula.videocache;
|
|
|
|
/**
|
|
* Cache for proxy.
|
|
*
|
|
* @author Alexey Danilov (danikula@gmail.com).
|
|
*/
|
|
public interface Cache {
|
|
|
|
long available() throws ProxyCacheException;
|
|
|
|
int read(byte[] buffer, long offset, int length) throws ProxyCacheException;
|
|
|
|
void append(byte[] data, int length) throws ProxyCacheException;
|
|
|
|
void close() throws ProxyCacheException;
|
|
|
|
void complete() throws ProxyCacheException;
|
|
|
|
boolean isCompleted();
|
|
}
|