Interface IFile

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  IFile.SeekOrigin  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int read​(byte[] buffer, int size)
      reads from the file into a buffer.
      String url()
      file's url - may be empty for non-file based IFile implementations.
      void write​(byte[] buffer, int size)
      writes into the file from a buffer
    • Method Detail

      • url

        String url()
        file's url - may be empty for non-file based IFile implementations.
        Returns:
        - url where the file object came from.
      • read

        int read​(byte[] buffer,
                 int size)
        reads from the file into a buffer.
        Parameters:
        buffer - - pointer to a buffer
        size - - requested number of characters to read
        Returns:
        - the actual number of characters read
      • write

        void write​(byte[] buffer,
                   int size)
        writes into the file from a buffer
        Parameters:
        buffer - - pointer to a buffer
        size - - requested number of characters to write