Class BootstrapUtils
java.lang.Object
com.atlassian.bamboo.agent.bootstrap.BootstrapUtils
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addFingerprintHeader
(AgentContext agentContext, org.apache.http.message.AbstractHttpMessage req) static long
calculateAdlerChecksum
(File file) static long
calculateCrc32
(File file) static void
copyResponseToFile
(org.apache.http.HttpResponse response, Path file) static void
copyStream
(@NotNull InputStream inputStream, @NotNull OutputStream outputStream) static void
copyStream
(@NotNull InputStream inputStream, @NotNull OutputStream outputStream, @Nullable BootstrapUtils.ProgressMonitor progressMonitor) static void
copyStreamToFile
(InputStream inputStream, Path file)
-
Field Details
-
BUFFER_SIZE
public static final int BUFFER_SIZE- See Also:
-
-
Method Details
-
calculateAdlerChecksum
- Throws:
IOException
-
calculateCrc32
- Throws:
IOException
-
copyStream
public static void copyStream(@NotNull @NotNull InputStream inputStream, @NotNull @NotNull OutputStream outputStream) throws IOException - Throws:
IOException
-
copyStream
public static void copyStream(@NotNull @NotNull InputStream inputStream, @NotNull @NotNull OutputStream outputStream, @Nullable @Nullable BootstrapUtils.ProgressMonitor progressMonitor) throws IOException - Throws:
IOException
-
copyResponseToFile
public static void copyResponseToFile(org.apache.http.HttpResponse response, Path file) throws IOException - Throws:
IOException
-
copyStreamToFile
- Throws:
IOException
-
addFingerprintHeader
public static void addFingerprintHeader(AgentContext agentContext, org.apache.http.message.AbstractHttpMessage req)
-