public final class InMemoryFileSystem extends Object implements okhttp3.internal.io.FileSystem, org.junit.rules.TestRule
SYSTEM| Constructor and Description |
|---|
InMemoryFileSystem() |
| Modifier and Type | Method and Description |
|---|---|
okio.Sink |
appendingSink(File file) |
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
void |
delete(File file) |
void |
deleteContents(File directory) |
void |
ensureResourcesClosed() |
boolean |
exists(File file) |
void |
rename(File from,
File to) |
okio.Sink |
sink(File file) |
long |
size(File file) |
okio.Source |
source(File file) |
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRulepublic void ensureResourcesClosed()
public okio.Source source(File file) throws FileNotFoundException
source in interface okhttp3.internal.io.FileSystemFileNotFoundExceptionpublic okio.Sink sink(File file) throws FileNotFoundException
sink in interface okhttp3.internal.io.FileSystemFileNotFoundExceptionpublic okio.Sink appendingSink(File file) throws FileNotFoundException
appendingSink in interface okhttp3.internal.io.FileSystemFileNotFoundExceptionpublic void delete(File file) throws IOException
delete in interface okhttp3.internal.io.FileSystemIOExceptionpublic boolean exists(File file) throws IOException
exists in interface okhttp3.internal.io.FileSystemIOExceptionpublic long size(File file)
size in interface okhttp3.internal.io.FileSystempublic void rename(File from, File to) throws IOException
rename in interface okhttp3.internal.io.FileSystemIOExceptionpublic void deleteContents(File directory) throws IOException
deleteContents in interface okhttp3.internal.io.FileSystemIOExceptionCopyright © 2016. All Rights Reserved.