public class GitBinaryValue extends ExternalBinaryValue
BinaryValue implementation used to read the content of a specific object ID from the supplied repository. This class
computes the MIME type lazily or upon serialization.EMPTY_CONTENT| Constructor and Description |
|---|
GitBinaryValue(org.eclipse.jgit.lib.ObjectId id,
org.eclipse.jgit.lib.ObjectLoader loader,
String sourceName,
String nameHint,
MimeTypeDetector mimeTypeDetector) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getStream() |
getId, getMimeType, getMimeType, getSize, getSourceName, hasMimeType, setMimeType, toStringcompareTo, dispose, equals, getHash, getHexHash, getKey, getReadableSize, hashCode, keyFor, readpublic GitBinaryValue(org.eclipse.jgit.lib.ObjectId id,
org.eclipse.jgit.lib.ObjectLoader loader,
String sourceName,
String nameHint,
MimeTypeDetector mimeTypeDetector)
public InputStream getStream() throws RepositoryException
RepositoryExceptionCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.