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 |
---|---|
protected InputStream |
internalStream() |
getId, getMimeType, getMimeType, getSize, getSourceName, hasMimeType, setMimeType, toString
compareTo, dispose, equals, getHash, getHexHash, getKey, getReadableSize, getStream, hashCode, keyFor, read
public GitBinaryValue(org.eclipse.jgit.lib.ObjectId id, org.eclipse.jgit.lib.ObjectLoader loader, String sourceName, String nameHint, MimeTypeDetector mimeTypeDetector)
protected InputStream internalStream() throws IOException
internalStream
in class AbstractBinary
IOException
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.