public class Binary extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
blobProviderId |
protected String |
digest |
protected File |
file |
Modifier | Constructor and Description |
---|---|
|
Binary(File file,
String digest,
String blobProviderId) |
protected |
Binary(String digest,
String blobProviderId) |
Modifier and Type | Method and Description |
---|---|
String |
getBlobProviderId()
Gets the blob provider which created this blob.
|
String |
getDigest()
Gets a string representation of the hex digest of the binary.
|
String |
getDigestAlgorithm()
Gets the digest algorithm from the digest length.
|
File |
getFile() |
InputStream |
getStream()
Gets an input stream for the binary.
|
protected File |
recomputeFile()
Recomputes the file attribute by getting it from a new Binary for the same digest.
|
String |
toString() |
protected final String blobProviderId
public String getDigestAlgorithm()
public String getDigest()
[0-9a-f]
public String getBlobProviderId()
This is usually the repository name.
public InputStream getStream() throws IOException
IOException
protected File recomputeFile()
Copyright © 2016 Nuxeo SA. All rights reserved.