• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.robolectric.res;
2 
3 import java.io.IOException;
4 import java.io.InputStream;
5 import javax.annotation.Nonnull;
6 
7 public interface FsFile {
exists()8   boolean exists();
9 
isDirectory()10   boolean isDirectory();
11 
isFile()12   boolean isFile();
13 
listFiles()14   FsFile[] listFiles();
15 
listFiles(Filter filter)16   FsFile[] listFiles(Filter filter);
17 
listFileNames()18   String[] listFileNames();
19 
getParent()20   FsFile getParent();
21 
getName()22   String getName();
23 
getInputStream()24   InputStream getInputStream() throws IOException;
25 
getBytes()26   byte[] getBytes() throws IOException;
27 
join(String... pathParts)28   FsFile join(String... pathParts);
29 
toString()30   @Override String toString();
31 
equals(Object o)32   @Override boolean equals(Object o);
33 
hashCode()34   @Override int hashCode();
35 
getBaseName()36   String getBaseName();
37 
getPath()38   String getPath();
39 
length()40   long length();
41 
42   public interface Filter {
accept(@onnull FsFile fsFile)43     boolean accept(@Nonnull FsFile fsFile);
44   }
45 }
46