// Path: library/src/main/java/com/vincan/medialoader/data/file/cleanup/DiskLruCache.java
// public interface DiskLruCache {
// 
//     void save(String url, File file);
// 
//     File get(String url);
// 
//     void remove(String url);
// 
//     void close();
// 
//     void clear();
// }


import com.vincan.medialoader.data.file.cleanup.DiskLruCache;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;

package com.vincan.medialoader.data.file;



/**
 * {@link BufferedRandomAccessFile}实现
 *
 * @author vincanyang
 */
public class BufferRAFileDataSource extends BaseFileDataSource {

    private static final String TEMP_POSTFIX = ".tmp";

    private BufferedRandomAccessFile mRandomAccessFile;


// Path: library/src/main/java/com/vincan/medialoader/data/file/cleanup/DiskLruCache.java
// public interface DiskLruCache {
// 
//     void save(String url, File file);
// 
//     File get(String url);
// 
//     void remove(String url);
// 
//     void close();
// 
//     void clear();
// }


// Path: library/src/main/java/com/vincan/medialoader/data/file/BufferRAFileDataSource.java
import com.vincan.medialoader.data.file.cleanup.DiskLruCache;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;

package com.vincan.medialoader.data.file;



/**
 * {@link BufferedRandomAccessFile}实现
 *
 * @author vincanyang
 */
public class BufferRAFileDataSource extends BaseFileDataSource {

    private static final String TEMP_POSTFIX = ".tmp";

    private BufferedRandomAccessFile mRandomAccessFile;


    public BufferRAFileDataSource(File file, DiskLruCache diskLruStorage) throws IOException {
