public interface FileContentService extends VcsService, VcsRemoteService
Modifier and Type | Method and Description |
---|---|
void |
getContent(java.lang.String version,
VcsChangeInfo change,
VcsChangeInfo.ContentType direction,
java.io.OutputStream targetStream)
Get binary content of the single file in modification set.
|
void |
getPathContent(java.lang.String filePath,
java.lang.String version,
java.io.OutputStream targetStream)
Get binary content of a single file.
|
void getPathContent(@NotNull java.lang.String filePath, @NotNull java.lang.String version, @NotNull java.io.OutputStream targetStream) throws VcsException
filePath
- file path in VCS, relative to the VCS rootversion
- version returned by jetbrains.buildServer.vcs.VcsModification#getVersion() or see jetbrains.buildServer.vcs.CollectChangesPolicy.targetStream
- the target stream for the file contentVcsException
- if some problem occurred.
detected easily the implementation may throw jetbrains.buildServer.vcs.VcsException.
In this case some TeamCity functions may work inefficiently, for example the file content cache.void getContent(@NotNull java.lang.String version, @NotNull VcsChangeInfo change, @NotNull VcsChangeInfo.ContentType direction, @NotNull java.io.OutputStream targetStream) throws VcsException
version
- version returned by jetbrains.buildServer.vcs.VcsModification#getVersion() or see jetbrains.buildServer.vcs.CollectChangesPolicy.change
- specified change of the filedirection
- specifies what content should be return - before modification or after it.VcsException
- if some problem occurred.
detected easily the implementation may throw jetbrains.buildServer.vcs.VcsException.
In this case some TeamCity functions may work inefficiently, for example the file content cache.