Package ej.wasi
Class Wasi.StdOut
- java.lang.Object
-
- ej.wasi.Wasi.StdOut
-
- All Implemented Interfaces:
WasiIO,WritableIO,Closeable,AutoCloseable
- Enclosing class:
- Wasi
public static class Wasi.StdOut extends 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()Closes this stream and releases any system resources associated with it.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 IOExceptionDescription copied from interface:CloseableCloses this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException- if an I/O error occurs
-
write
public void write(byte[] buffer, int offset, int length) throws 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:
IOException- if an I/O error occurs.
-
-