mirror of
https://github.com/zhigang1992/AndroidVideoCache.git
synced 2026-06-18 12:14:02 +08:00
🎉 VideoCache 1.0 released
This commit is contained in:
21
library/src/main/java/com/danikula/videocache/Cache.java
Normal file
21
library/src/main/java/com/danikula/videocache/Cache.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package com.danikula.videocache;
|
||||
|
||||
/**
|
||||
* Cache for proxy.
|
||||
*
|
||||
* @author Alexey Danilov (danikula@gmail.com).
|
||||
*/
|
||||
public interface Cache {
|
||||
|
||||
int 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();
|
||||
}
|
||||
Reference in New Issue
Block a user