Package org.teavm.runtime.fs
Interface VirtualFile
- All Known Implementing Classes:
CVirtualFile,VirtualFileImpl,WasiVirtualFile
public interface VirtualFile
-
Method Summary
Modifier and TypeMethodDescriptionbooleanadopt(VirtualFile file, String fileName) booleancanRead()booleancanWrite()createAccessor(boolean readable, boolean writable, boolean append) booleancreateDirectory(String fileName) booleancreateFile(String fileName) booleandelete()getName()booleanbooleanisFile()longintlength()String[]booleansetLastModified(long lastModified) booleansetReadOnly(boolean readOnly)
-
Method Details
-
getName
String getName() -
isDirectory
boolean isDirectory() -
isFile
boolean isFile() -
listFiles
String[] listFiles() -
createAccessor
-
createFile
- Throws:
IOException
-
createDirectory
-
delete
boolean delete() -
adopt
-
canRead
boolean canRead() -
canWrite
boolean canWrite() -
lastModified
long lastModified() -
setLastModified
boolean setLastModified(long lastModified) -
setReadOnly
boolean setReadOnly(boolean readOnly) -
length
int length()
-