Interface VirtualFile

  • All Known Implementing Classes:
    JavaVirtualFile

    public interface VirtualFile
    • Method Detail

      • getName

        String getName()
        Get the file name
      • openInputStream

        InputStream openInputStream​(boolean lock)
                             throws IOException
        Open a stream for reading
        Parameters:
        lock - true if a lock is requested. It's up to the implementation whether to actually honor the lock.
        Throws:
        IOException
      • openOutputStream

        OutputStream openOutputStream​(boolean lock)
                               throws IOException
        Open a stream for writing
        Parameters:
        lock - true if a lock is requested. It's up to the implementation whether to actually honor the lock.
        Throws:
        IOException
      • getLastModified

        long getLastModified()
        The last modified time in UTC milliseconds
      • getCreationTime

        long getCreationTime()
        The creation time in UTC milliseconds
      • getSize

        long getSize()
        The size in bytes.
        Returns:
        the size or -1 if unknown.