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