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.TestRule
public void ensureResourcesClosed()
public okio.Source source(java.io.File file) throws java.io.FileNotFoundException
source
in interface okhttp3.internal.io.FileSystem
java.io.FileNotFoundException
public okio.Sink sink(java.io.File file) throws java.io.FileNotFoundException
sink
in interface okhttp3.internal.io.FileSystem
java.io.FileNotFoundException
public okio.Sink appendingSink(java.io.File file) throws java.io.FileNotFoundException
appendingSink
in interface okhttp3.internal.io.FileSystem
java.io.FileNotFoundException
public void delete(java.io.File file) throws java.io.IOException
delete
in interface okhttp3.internal.io.FileSystem
java.io.IOException
public boolean exists(java.io.File file)
exists
in interface okhttp3.internal.io.FileSystem
public long size(java.io.File file)
size
in interface okhttp3.internal.io.FileSystem
public void rename(java.io.File from, java.io.File to) throws java.io.IOException
rename
in interface okhttp3.internal.io.FileSystem
java.io.IOException
public void deleteContents(java.io.File directory) throws java.io.IOException
deleteContents
in interface okhttp3.internal.io.FileSystem
java.io.IOException
Copyright © 2019. All Rights Reserved.