Example usage for com.squareup.okhttp.internal.io FileSystem SYSTEM

List of usage examples for com.squareup.okhttp.internal.io FileSystem SYSTEM

Introduction

In this page you can find the example usage for com.squareup.okhttp.internal.io FileSystem SYSTEM.

Prototype

FileSystem SYSTEM

To view the source code for com.squareup.okhttp.internal.io FileSystem SYSTEM.

Click Source Link

Document

The host machine's local file system.

Usage

From source file:com.frostwire.android.util.DiskCache.java

License:Open Source License

public DiskCache(File directory, long size) throws IOException {
    this.cache = DiskLruCache.create(FileSystem.SYSTEM, directory, APP_VERSION, VALUE_COUNT, size);
}

From source file:com.linroid.pushapp.module.DataModule.java

License:Apache License

@Provides
@Singleton/*from   w w w.j a  v  a2  s .co  m*/
DiskLruCache provideDataCache(@DataCacheDir File cacheDir) {
    //10M
    return DiskLruCache.create(FileSystem.SYSTEM, cacheDir, BuildConfig.VERSION_CODE, 1, 1024 * 1024 * 10);
}