Package org.robolectric.res
Class Fs
java.lang.Object
org.robolectric.res.Fs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
externalize
(Path path) static Path
fileFromPath
(String path) Deprecated.static FileSystem
static FileSystem
static Path
Use this method instead ofPaths.get(String, String...)
orPaths.get(URI)
.static Path
Isn't this whatPaths.get(URI)
should do?static byte[]
static InputStream
getInputStream
(Path path) static Path
static String[]
listFileNames
(Path path) static Path[]
static Path[]
static Path
Deprecated.UseFile.toPath()
instead.static URI
-
Constructor Details
-
Fs
public Fs()
-
-
Method Details
-
newFile
Deprecated.UseFile.toPath()
instead. -
fileFromPath
@Deprecated @InlineMe(replacement="Fs.fromUrl(path)", imports="org.robolectric.res.Fs") public static Path fileFromPath(String path) Deprecated.UsefromUrl(String)
instead. -
forJar
-
forJar
-
fromUrl
Use this method instead ofPaths.get(String, String...)
orPaths.get(URI)
.Supports "file:path", "jar:file:jarfile.jar!/path", and plain old paths.
For JAR files, automatically open and cache filesystems.
-
fromUrl
Isn't this whatPaths.get(URI)
should do? -
toUri
-
getInputStream
- Throws:
IOException
-
getBytes
- Throws:
IOException
-
listFiles
- Throws:
IOException
-
listFiles
- Throws:
IOException
-
listFileNames
-
join
-
externalize
-
fromUrl(String)
instead.