com.google.appengine.api.blobstore
Class BlobKey
- java.lang.Object
-
- com.google.appengine.api.blobstore.BlobKey
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<BlobKey>
public final class BlobKey extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<BlobKey>
BlobKeycontains the string identifier of a large (possibly larger than 1MB) blob of binary data that was uploaded in a previous request and can be streamed directly to users.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description BlobKey(java.lang.String blobKey)Construct a newBlobKeywith the specified key string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcompareTo(BlobKey o)booleanequals(java.lang.Object object)TwoBlobKeyobjects are considered equal if they point to the same blobs.java.lang.StringgetKeyString()Returns the blob key as a String.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
BlobKey
public BlobKey(java.lang.String blobKey)
Construct a newBlobKeywith the specified key string.- Throws:
java.lang.IllegalArgumentException- If the specified string was null.
-
-
Method Detail
-
getKeyString
public java.lang.String getKeyString()
Returns the blob key as a String.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
TwoBlobKeyobjects are considered equal if they point to the same blobs.- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-