32 lines
858 B
Java
32 lines
858 B
Java
package org.hsqldb.lib;
|
|
|
|
import java.io.IOException;
|
|
import java.io.InputStream;
|
|
import java.io.OutputStream;
|
|
|
|
public interface FileAccess {
|
|
public static final int ELEMENT_READ = 1;
|
|
public static final int ELEMENT_READWRITE = 7;
|
|
public static final int ELEMENT_SEEKABLEREAD = 3;
|
|
public static final int ELEMENT_TRUNCATE = 8;
|
|
public static final int ELEMENT_WRITE = 4;
|
|
|
|
public interface FileSync {
|
|
void sync() throws IOException;
|
|
}
|
|
|
|
void createParentDirs(String str);
|
|
|
|
FileSync getFileSync(OutputStream outputStream) throws IOException;
|
|
|
|
boolean isStreamElement(String str);
|
|
|
|
InputStream openInputStreamElement(String str) throws IOException;
|
|
|
|
OutputStream openOutputStreamElement(String str) throws IOException;
|
|
|
|
void removeElement(String str);
|
|
|
|
void renameElement(String str, String str2);
|
|
}
|