Example usage for com.squareup.okhttp.internal.io FileSystem interface-usage

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

Introduction

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

Usage

From source file co.paralleluniverse.fibers.okhttp.test.utils.original.io.InMemoryFileSystem.java

/** A simple file system where all files are held in memory. Not safe for concurrent use. */
public final class InMemoryFileSystem implements FileSystem, TestRule {
    private final Map<File, Buffer> files = new LinkedHashMap<>();
    private final Map<Source, File> openSources = new IdentityHashMap<>();
    private final Map<Sink, File> openSinks = new IdentityHashMap<>();