Class DownloadedPatch
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.patch.DownloadedPatch
-
public class DownloadedPatch extends Object
Aggregate information about downloaded repository patch from the server.- Since:
- 2019.1
- Author:
- Mikhail Khorkov
-
-
Constructor Summary
Constructors Constructor Description DownloadedPatch(File file, DownloadedPatchType type, AgentRunningBuild build, PatchTempFiles patchTempFiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Delete downloaded patch from disk.File
getFile()
Return downloaded patch as file.InputStream
getStream()
Return downloaded patch as stream.DownloadedPatchType
getType()
-
-
-
Constructor Detail
-
DownloadedPatch
public DownloadedPatch(File file, DownloadedPatchType type, AgentRunningBuild build, PatchTempFiles patchTempFiles)
-
-
Method Detail
-
getType
public DownloadedPatchType getType()
-
getFile
public File getFile()
Return downloaded patch as file.You have to call
close()
method to delete the file when you do not need it any more.- Returns:
- downloaded patch as file
-
close
public void close()
Delete downloaded patch from disk.
-
getStream
public InputStream getStream() throws FileNotFoundException
Return downloaded patch as stream.You have to close the stream when you do not need it any more.
- Returns:
- downloaded patch as stream
- Throws:
FileNotFoundException
-
-