Package org.robolectric.res
Class Fs
java.lang.Object
org.robolectric.res.Fs
public abstract class Fs extends Object
- 
Constructor Summary
Constructors Constructor Description Fs() - 
Method Summary
Modifier and Type Method Description static Stringexternalize(Path path)static PathfileFromPath(String path)Deprecated.UsefromUrl(String)instead.static FileSystemforJar(URL url)static FileSystemforJar(Path jarFile)static PathfromUrl(String urlString)Use this method instead ofPaths.get(String, String...)orPaths.get(URI).static PathfromUrl(URL url)Isn't this whatPaths.get(URI)should do?static byte[]getBytes(Path path)static InputStreamgetInputStream(Path path)static Pathjoin(Path path, String... pathParts)static String[]listFileNames(Path path)static Path[]listFiles(Path path)static Path[]listFiles(Path path, Predicate<Path> filter)static PathnewFile(File file)Deprecated.UseFile.toPath()instead.static URItoUri(URL url) 
- 
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
 
 -