Package org.robolectric.res
Class Fs
java.lang.Object
org.robolectric.res.Fs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringexternalize(Path path) static FileSystemstatic FileSystemstatic PathUse this method instead ofPaths.get(String, String...)orPaths.get(URI).static PathIsn't this whatPaths.get(URI)should do?static byte[]static InputStreamgetInputStream(Path path) static Pathstatic String[]listFileNames(Path path) static Path[]static Path[]static URI
-
Constructor Details
-
Fs
public Fs()
-
-
Method Details
-
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
-