You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
484 B
30 lines
484 B
package net.tortuga.util.loading;
|
|
|
|
|
|
import java.io.InputStream;
|
|
|
|
|
|
/**
|
|
* Directory access interface
|
|
*
|
|
* @author Ondřej Hruška (MightyPork)
|
|
*/
|
|
public interface DirectoryLoader {
|
|
|
|
/**
|
|
* Get if file exists in this directory
|
|
*
|
|
* @param filename file name
|
|
* @return exists
|
|
*/
|
|
public boolean fileExists(String filename);
|
|
|
|
|
|
/**
|
|
* Open file as InputStream
|
|
*
|
|
* @param filename file name
|
|
* @return input stream
|
|
*/
|
|
public InputStream openFile(String filename);
|
|
}
|
|
|