Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c18878d2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Enhance documentation of ReadableArchive" into main

parents 9dcfb27c 9f34e751
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -188,19 +188,21 @@ public class ReadableArchive extends Archive {
    }

    /**
     * Creates a DocumentsArchive instance for opening, browsing and accessing
     * documents within the archive passed as a file descriptor.
     * Creates a ReadableArchive instance for opening, browsing and accessing documents within
     * the archive passed as a file descriptor.
     * <p>
     * If the file descriptor is not seekable, then a snapshot will be created.
     * </p><p>
     * This method takes ownership for the passed descriptor. The caller must
     * not use it after passing.
     * </p>
     *
     * @param context         Context of the provider.
     * @param descriptor      File descriptor for the archive's contents.
     * @param archiveUri Uri of the archive document.
     * @param archiveUri      URI of the archive document.
     * @param archiveMimeType MIME type of the archive document.
     * @param accessMode      Access mode for the archive {@see ParcelFileDescriptor}.
     * @param notificationUri notificationUri Uri for notifying that the archive file has changed.
     * @param notificationUri URI for notifying that the archive file has changed.
     */
    public static ReadableArchive createForParcelFileDescriptor(
            Context context, ParcelFileDescriptor descriptor, Uri archiveUri,