public class FileContentUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TEXT_X_GERRIT_COMMIT_MESSAGE |
static java.lang.String |
TEXT_X_GERRIT_MERGE_LIST |
Modifier and Type | Method and Description |
---|---|
BinaryResult |
downloadContent(ProjectState project,
org.eclipse.jgit.lib.ObjectId revstr,
java.lang.String path,
java.lang.Integer parent) |
BinaryResult |
getContent(ProjectState project,
org.eclipse.jgit.lib.ObjectId revstr,
java.lang.String path) |
static java.lang.String |
resolveContentType(ProjectState project,
java.lang.String path,
PatchScript.FileMode fileMode,
java.lang.String mimeType) |
public static final java.lang.String TEXT_X_GERRIT_COMMIT_MESSAGE
public static final java.lang.String TEXT_X_GERRIT_MERGE_LIST
public BinaryResult getContent(ProjectState project, org.eclipse.jgit.lib.ObjectId revstr, java.lang.String path) throws ResourceNotFoundException, java.io.IOException
ResourceNotFoundException
java.io.IOException
public BinaryResult downloadContent(ProjectState project, org.eclipse.jgit.lib.ObjectId revstr, java.lang.String path, java.lang.Integer parent) throws ResourceNotFoundException, java.io.IOException
ResourceNotFoundException
java.io.IOException
public static java.lang.String resolveContentType(ProjectState project, java.lang.String path, PatchScript.FileMode fileMode, java.lang.String mimeType)