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 voidclose()Delete downloaded patch from disk.FilegetFile()Return downloaded patch as file.InputStreamgetStream()Return downloaded patch as stream.DownloadedPatchTypegetType()
-
-
-
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
-
-