21 lines
528 B
Plaintext
21 lines
528 B
Plaintext
package slangc.streams;
|
|
|
|
public abstract class VFS {
|
|
public File file(String path) {
|
|
return new File(this, path);
|
|
}
|
|
|
|
public abstract String separator();
|
|
|
|
public String[] allSeparators() {
|
|
return new String[]{separator()};
|
|
}
|
|
|
|
public abstract File[] list(String path) throws Error;
|
|
|
|
public long size(String path) throws Error;
|
|
|
|
public abstract FileInput openInput(String path) throws Error;
|
|
|
|
public abstract FileOutput openOutput(String path) throws Error;
|
|
} |