|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.appengine.api.datastore.Blob
public final class Blob
Blob
contains an array of bytes. This byte array can be no bigger
than 1MB. To store files, particularly files larger than this 1MB limit,
look at the Blobstore API.
Constructor Summary | |
---|---|
Blob(byte[] bytes)
Construct a new Blob with the specified bytes. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Two Blob objects are considered equal if their contained
bytes match exactly. |
byte[] |
getBytes()
Return the bytes stored in this Blob . |
int |
hashCode()
|
java.lang.String |
toString()
Simply prints the number of bytes contained in this Blob . |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Blob(byte[] bytes)
Blob
with the specified bytes. Since
Blobs
can be quite large we do not perform a defensive copy of the
provided byte array. It is the programmer's responsibility to avoid
making changes to this array once the Blob
has been constructed.
Method Detail |
---|
public byte[] getBytes()
Blob
.
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
Blob
objects are considered equal if their contained
bytes match exactly.
equals
in class java.lang.Object
public java.lang.String toString()
Blob
.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |