Class BlobInfoFactory (5.0.3)
Stay organized with collections
Save and categorize content based on your preferences.
public class BlobInfoFactory
BlobInfoFactory provides a trivial interface for retrieving
BlobInfo metadata.
BlobInfo metadata is stored in read-only BlobInfo
entities in the datastore. This class provides an easy way to
access these entities. For more complex queries, you can use the
datastore directly.
Static Fields
CONTENT_TYPE
public static final String CONTENT_TYPE
| Field Value |
| Type |
Description |
String |
|
CREATION
public static final String CREATION
| Field Value |
| Type |
Description |
String |
|
FILENAME
public static final String FILENAME
| Field Value |
| Type |
Description |
String |
|
GS_OBJECT_NAME
public static final String GS_OBJECT_NAME
| Field Value |
| Type |
Description |
String |
|
KIND
public static final String KIND
| Field Value |
| Type |
Description |
String |
|
MD5_HASH
public static final String MD5_HASH
| Field Value |
| Type |
Description |
String |
|
SIZE
public static final String SIZE
| Field Value |
| Type |
Description |
String |
|
Constructors
BlobInfoFactory()
Creates a BlobInfoFactory that uses the default
implementation of DatastoreService.
BlobInfoFactory(DatastoreService datastoreService)
public BlobInfoFactory(DatastoreService datastoreService)
Creates a BlobInfoFactory with the specified
implementation of DatastoreService.
Methods
createBlobInfo(Entity entity)
public BlobInfo createBlobInfo(Entity entity)
| Parameter |
| Name |
Description |
entity |
Entity
|
loadBlobInfo(BlobKey blobKey)
public @Nullable BlobInfo loadBlobInfo(BlobKey blobKey)
Loads the BlobInfo metadata for blobKey. Returns
null if no matching blob is found.
| Parameter |
| Name |
Description |
blobKey |
BlobKey
|
| Returns |
| Type |
Description |
com.google.appengine.api.blobstore.@org.jspecify.annotations.Nullable BlobInfo |
|
queryBlobInfos()
public Iterator<BlobInfo> queryBlobInfos()
Queries for BlobInfo instances, beginning with the BlobKey that appears first in lexicographic order.
queryBlobInfosAfter(@Nullable BlobKey previousBlob)
public Iterator<BlobInfo> queryBlobInfosAfter(@Nullable BlobKey previousBlob)
Queries for BlobInfo instances, beginning at the blob
following previousBlob in lexicographic order. If
previousBlob is null, the first blob will be returned.
This is useful for displaying discrete pages of blobs.
| Parameter |
| Name |
Description |
previousBlob |
com.google.appengine.api.blobstore.@org.jspecify.annotations.Nullable BlobKey
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-06-03 UTC.
[null,null,["Last updated 2026-06-03 UTC."],[],[]]