mirror of
https://github.com/zhigang1992/AndroidVideoCache.git
synced 2026-02-01 22:35:17 +08:00
18 lines
349 B
Java
18 lines
349 B
Java
package com.danikula.videocache;
|
|
|
|
/**
|
|
* Source for proxy.
|
|
*
|
|
* @author Alexey Danilov (danikula@gmail.com).
|
|
*/
|
|
public interface Source {
|
|
|
|
int available() throws ProxyCacheException;
|
|
|
|
void open(int offset) throws ProxyCacheException;
|
|
|
|
void close() throws ProxyCacheException;
|
|
|
|
int read(byte[] buffer) throws ProxyCacheException;
|
|
}
|