public class LazyBinary extends Binary
Modifier and Type | Field and Description |
---|---|
protected CachingBinaryManager |
cbm |
protected boolean |
hasLength |
blobProviderId, digest, file, length
Constructor and Description |
---|
LazyBinary(String digest,
long length,
String repoName,
CachingBinaryManager cbm) |
LazyBinary(String digest,
String repoName,
CachingBinaryManager cbm) |
Modifier and Type | Method and Description |
---|---|
protected CachingBinaryManager |
getCachingBinaryManager() |
File |
getFile() |
long |
getLength()
Gets the length of the binary.
|
InputStream |
getStream()
Gets an input stream for the binary.
|
computeLength, getBlobProviderId, getDigest, getDigestAlgorithm, recomputeFile, toString
protected boolean hasLength
protected transient CachingBinaryManager cbm
public LazyBinary(String digest, String repoName, CachingBinaryManager cbm)
public LazyBinary(String digest, long length, String repoName, CachingBinaryManager cbm)
protected CachingBinaryManager getCachingBinaryManager()
public InputStream getStream() throws IOException
Binary
getStream
in class Binary
IOException
Copyright © 2016 Nuxeo SA. All rights reserved.