|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@Immutable public interface Binary

Value holder for binary data. Binary instances are not mutable.
| Method Summary | |
|---|---|
void |
acquire()
Acquire any resources for this data. |
byte[] |
getBytes()
Get the contents of this data as a byte array. |
byte[] |
getHash()
Get the SHA-1 hash of the contents. |
long |
getSize()
Get the length of this binary data. |
InputStream |
getStream()
Get the contents of this data as a stream. |
void |
release()
Release any acquired resources. |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
long getSize()
acquire()byte[] getHash()
Repeatedly calling this method should generally be efficient, as it most implementations will compute the hash only once.
acquire(),
MessageDigest.digest(byte[]),
MessageDigest.getInstance(String)InputStream getStream()
acquire()byte[] getBytes()
acquire()void acquire()
release()void release()
acquire()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||