public final class InMemoryFileSystem extends java.lang.Object implements okhttp3.internal.io.FileSystem, org.junit.rules.TestRule
SYSTEM| Constructor and Description |
|---|
InMemoryFileSystem() |
| Modifier and Type | Method and Description |
|---|---|
okio.Sink |
appendingSink(java.io.File file) |
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
void |
delete(java.io.File file) |
void |
deleteContents(java.io.File directory) |
void |
ensureResourcesClosed() |
boolean |
exists(java.io.File file) |
void |
rename(java.io.File from,
java.io.File to) |
okio.Sink |
sink(java.io.File file) |
long |
size(java.io.File file) |
okio.Source |
source(java.io.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(java.io.File file)
throws java.io.FileNotFoundException
source in interface okhttp3.internal.io.FileSystemjava.io.FileNotFoundExceptionpublic okio.Sink sink(java.io.File file)
throws java.io.FileNotFoundException
sink in interface okhttp3.internal.io.FileSystemjava.io.FileNotFoundExceptionpublic okio.Sink appendingSink(java.io.File file)
throws java.io.FileNotFoundException
appendingSink in interface okhttp3.internal.io.FileSystemjava.io.FileNotFoundExceptionpublic void delete(java.io.File file)
throws java.io.IOException
delete in interface okhttp3.internal.io.FileSystemjava.io.IOExceptionpublic boolean exists(java.io.File file)
exists in interface okhttp3.internal.io.FileSystempublic long size(java.io.File file)
size in interface okhttp3.internal.io.FileSystempublic void rename(java.io.File from,
java.io.File to)
throws java.io.IOException
rename in interface okhttp3.internal.io.FileSystemjava.io.IOExceptionpublic void deleteContents(java.io.File directory)
throws java.io.IOException
deleteContents in interface okhttp3.internal.io.FileSystemjava.io.IOExceptionCopyright © 2018. All Rights Reserved.