Package org.teavm.backend.c.runtime.fs
Class CVirtualFileAccessor
- java.lang.Object
-
- org.teavm.backend.c.runtime.fs.CVirtualFileAccessor
-
- All Implemented Interfaces:
VirtualFileAccessor
public class CVirtualFileAccessor extends java.lang.Object implements VirtualFileAccessor
-
-
Constructor Summary
Constructors Constructor Description CVirtualFileAccessor(long file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()intread(byte[] buffer, int offset, int limit)voidresize(int size)voidseek(int target)intsize()voidskip(int amount)inttell()voidwrite(byte[] buffer, int offset, int limit)
-
-
-
Method Detail
-
read
public int read(byte[] buffer, int offset, int limit) throws java.io.IOException- Specified by:
readin interfaceVirtualFileAccessor- Throws:
java.io.IOException
-
write
public void write(byte[] buffer, int offset, int limit) 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
-
-