Package ej.wasi

Class Wasi.StdOut

    • Constructor Detail

      • StdOut

        public StdOut​(boolean err)
    • Method Detail

      • close

        public void close()
                   throws IOException
        Description copied from interface: Closeable
        Closes 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:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Throws:
        IOException - if an I/O error occurs
      • write

        public void write​(byte[] buffer,
                          int offset,
                          int length)
                   throws IOException
        Description copied from interface: WritableIO
        Writes length bytes from t he specified byte array starting at offset offset to this WasiIO.
        Specified by:
        write in interface WritableIO
        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.
      • getType

        public FileType getType()
        Description copied from interface: WasiIO
        Gets the WasiIO file descriptor type.
        Specified by:
        getType in interface WasiIO
        Returns:
        the WasiIO file descriptor type.