public final class BlobId implements Serializable
Google Storage Object identifier. A BlobId
object includes the name of the containing
bucket, the blob's name and possibly the blob's generation. If #getGeneration() is
null
the identifier refers to the latest blob's generation.
Implements
SerializableStatic Methods
fromGsUtilUri(String gsUtilUri)
public static BlobId fromGsUtilUri(String gsUtilUri)
Creates a BlobId
object.
Parameter | |
---|---|
Name | Description |
gsUtilUri | String the Storage url to create the blob from |
Returns | |
---|---|
Type | Description |
BlobId |
of(String bucket, String name)
public static BlobId of(String bucket, String name)
Creates a blob identifier. Generation is set to null
.
Parameters | |
---|---|
Name | Description |
bucket | String the name of the bucket that contains the blob |
name | String the name of the blob |
Returns | |
---|---|
Type | Description |
BlobId |
of(String bucket, String name, Long generation)
public static BlobId of(String bucket, String name, Long generation)
Creates a BlobId
object.
Parameters | |
---|---|
Name | Description |
bucket | String name of the containing bucket |