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: 3.4-rc2
Show newest version
package org.robolectric.res;

import org.jetbrains.annotations.NotNull;

import java.io.IOException;
import java.io.InputStream;

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(@NotNull FsFile fsFile);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy