org.robolectric.res.FsFile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resources Show documentation
Show all versions of resources Show documentation
An alternative Android testing framework.
package org.robolectric.res;
import java.io.IOException;
import java.io.InputStream;
import javax.annotation.Nonnull;
public interface FsFile {
boolean exists();
boolean isDirectory();
boolean isFile();
FsFile[] listFiles();
FsFile[] listFiles(Filter filter);
String[] listFileNames();
FsFile getParent();
String getName();
InputStream getInputStream() throws IOException;
byte[] getBytes() throws IOException;
FsFile join(String... pathParts);
@Override String toString();
@Override boolean equals(Object o);
@Override int hashCode();
String getBaseName();
String getPath();
public interface Filter {
boolean accept(@Nonnull FsFile fsFile);
}
}