All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.robolectric.res.FsFile Maven / Gradle / Ivy

There is a newer version: 4.13
Show newest version
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);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy