Package ej.wasi
Class Wasi.StdOut
- java.lang.Object
-
- ej.wasi.Wasi.StdOut
-
- All Implemented Interfaces:
WasiIO,WritableIO,java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- Wasi
public static class Wasi.StdOut extends java.lang.Object implements WritableIO
-
-
Constructor Summary
Constructors Constructor Description StdOut(boolean err)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()FileTypegetType()Gets the WasiIO file descriptor type.voidwrite(byte[] buffer, int offset, int length)Writeslengthbytes from t he specified byte array starting at offsetoffsetto this WasiIO.
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
write
public void write(byte[] buffer, int offset, int length) throws java.io.IOExceptionDescription copied from interface:WritableIOWriteslengthbytes from t he specified byte array starting at offsetoffsetto this WasiIO.- Specified by:
writein interfaceWritableIO- Parameters:
buffer- the data to write.offset- the starting offset.length- the number of bytes to write.- Throws:
java.io.IOException- if an I/O error occurs.
-
-