package slangc.streams; import slang.streams.SyncInput; public abstract class FileInput implements SyncInput { private VFS vfs; private String path; protected FileInput(VFS vfs, String path) { this.vfs = vfs; this.path = path; } public VFS vfs() { return vfs; } public String path() { return path; } public int read(byte[] buffer) { return readBuffer(buffer, 0, buffer.length); } public int readBuffer(byte[] buffer, int beginAt, int maxLength) { throw new Error("TODO:readBuffer"); } public void close() { throw new Error("TODO:close"); } }