Class WasiVirtualFileAccessor
- java.lang.Object
-
- org.teavm.backend.wasm.runtime.fs.WasiVirtualFileAccessor
-
- All Implemented Interfaces:
VirtualFileAccessor
public class WasiVirtualFileAccessor extends java.lang.Object implements VirtualFileAccessor
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()intread(byte[] buffer, int offset, int length)voidresize(int size)voidseek(int target)intsize()voidskip(int amount)inttell()voidwrite(byte[] buffer, int offset, int length)
-
-
-
Method Detail
-
read
public int read(byte[] buffer, int offset, int length) throws java.io.IOException- Specified by:
readin interfaceVirtualFileAccessor- Throws:
java.io.IOException
-
write
public void write(byte[] buffer, int offset, int length) throws java.io.IOException- Specified by:
writein interfaceVirtualFileAccessor- Throws:
java.io.IOException
-
tell
public int tell() throws java.io.IOException- Specified by:
tellin interfaceVirtualFileAccessor- Throws:
java.io.IOException
-
skip
public void skip(int amount) throws java.io.IOException- Specified by:
skipin interfaceVirtualFileAccessor- Throws:
java.io.IOException
-
seek
public void seek(int target) throws java.io.IOException- Specified by:
seekin interfaceVirtualFileAccessor- Throws:
java.io.IOException
-
size
public int size() throws java.io.IOException- Specified by:
sizein interfaceVirtualFileAccessor- Throws:
java.io.IOException
-
resize
public void resize(int size) throws java.io.IOException- Specified by:
resizein interfaceVirtualFileAccessor- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfaceVirtualFileAccessor- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfaceVirtualFileAccessor- Throws:
java.io.IOException
-
-