| 构造器和说明 |
|---|
ByteArraySource(byte[] data) |
public int read(byte[] buffer)
throws ProxyCacheException
Sourceread 在接口中 Sourcebuffer - a buffer to be used for reading data.ProxyCacheException - if error occur while reading source.public long length()
throws ProxyCacheException
Sourcelength 在接口中 SourceProxyCacheException - if error occur while fetching source data.public void open(long offset)
throws ProxyCacheException
SourceSource.read(byte[])open 在接口中 Sourceoffset - offset in bytes for source.ProxyCacheException - if error occur while opening source.public void close()
throws ProxyCacheException
Sourceclose 在接口中 SourceProxyCacheException - if error occur while closing source.