Merge "Fix javadoc of BlobStoreManager class." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a2ea714988
@@ -67,9 +67,9 @@ import java.util.function.Consumer;
|
|||||||
* <pre class="prettyprint">
|
* <pre class="prettyprint">
|
||||||
* final long sessionId = blobStoreManager.createSession(blobHandle);
|
* final long sessionId = blobStoreManager.createSession(blobHandle);
|
||||||
* try (BlobStoreManager.Session session = blobStoreManager.openSession(sessionId)) {
|
* try (BlobStoreManager.Session session = blobStoreManager.openSession(sessionId)) {
|
||||||
* try (ParcelFileDescriptor pfd = new ParcelFileDescriptor.AutoCloseOutputStream(
|
* try (OutputStream out = new ParcelFileDescriptor.AutoCloseOutputStream(
|
||||||
* session.openWrite(offsetBytes, lengthBytes))) {
|
* session.openWrite(offsetBytes, lengthBytes))) {
|
||||||
* writeData(pfd);
|
* writeData(out);
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* </pre>
|
* </pre>
|
||||||
@@ -100,9 +100,9 @@ import java.util.function.Consumer;
|
|||||||
* <p> The following code snippet shows how to specify the access mode and commit the session:
|
* <p> The following code snippet shows how to specify the access mode and commit the session:
|
||||||
* <pre class="prettyprint">
|
* <pre class="prettyprint">
|
||||||
* try (BlobStoreManager.Session session = blobStoreManager.openSession(sessionId)) {
|
* try (BlobStoreManager.Session session = blobStoreManager.openSession(sessionId)) {
|
||||||
* try (ParcelFileDescriptor pfd = new ParcelFileDescriptor.AutoCloseOutputStream(
|
* try (OutputStream out = new ParcelFileDescriptor.AutoCloseOutputStream(
|
||||||
* session.openWrite(offsetBytes, lengthBytes))) {
|
* session.openWrite(offsetBytes, lengthBytes))) {
|
||||||
* writeData(pfd);
|
* writeData(out);
|
||||||
* }
|
* }
|
||||||
* session.allowSameSignatureAccess();
|
* session.allowSameSignatureAccess();
|
||||||
* session.allowPackageAccess(packageName, certificate);
|
* session.allowPackageAccess(packageName, certificate);
|
||||||
@@ -134,9 +134,9 @@ import java.util.function.Consumer;
|
|||||||
*
|
*
|
||||||
* <p> The following code snippet shows how to access the data blob:
|
* <p> The following code snippet shows how to access the data blob:
|
||||||
* <pre class="prettyprint">
|
* <pre class="prettyprint">
|
||||||
* try (ParcelFileDescriptor pfd = new ParcelFileDescriptor.AutoCloseInputStream(
|
* try (InputStream in = new ParcelFileDescriptor.AutoCloseInputStream(
|
||||||
* blobStoreManager.openBlob(blobHandle)) {
|
* blobStoreManager.openBlob(blobHandle)) {
|
||||||
* useData(pfd);
|
* useData(in);
|
||||||
* }
|
* }
|
||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user