Interface WasiFile

    • Method Detail

      • seek

        long seek​(long offset,
                  int whence)
           throws java.io.IOException
        Throws:
        java.io.IOException
      • tell

        long tell()
           throws java.io.IOException
        Throws:
        java.io.IOException
      • wasiSetLength

        void wasiSetLength​(long length)
                    throws java.io.IOException
        Sets the length of a file. If file is shortened, the data is lost, if file is grown, the new data is filled with zeros.
        Parameters:
        length - The new length to set for the file.
        Throws:
        java.io.IOException - If an io error occurs
      • lastModidied

        long lastModidied()
      • length

        long length()
      • getCanonicalPath

        java.lang.String getCanonicalPath()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • renameTo

        void renameTo​(WasiFile newFile)
               throws java.io.IOException
        Throws:
        java.io.IOException
      • delete

        void delete()
             throws java.io.IOException
        Throws:
        java.io.IOException