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, toString
compareTo, dispose, equals, getHash, getHexHash, getKey, getReadableSize, hashCode, keyFor, read
public GitBinaryValue(org.eclipse.jgit.lib.ObjectId id, org.eclipse.jgit.lib.ObjectLoader loader, String sourceName, String nameHint, MimeTypeDetector mimeTypeDetector)
public InputStream getStream() throws RepositoryException
RepositoryException
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.