Class BootstrapUtils
- java.lang.Object
-
- com.atlassian.bamboo.agent.bootstrap.BootstrapUtils
-
public class BootstrapUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBootstrapUtils.ProgressMonitor
-
Field Summary
Fields Modifier and Type Field Description static intBUFFER_SIZE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddFingerprintHeader(AgentContext agentContext, org.apache.http.message.AbstractHttpMessage req)static longcalculateAdlerChecksum(File file)static longcalculateCrc32(File file)static voidcopyResponseToFile(org.apache.http.HttpResponse response, Path file)static voidcopyStream(@NotNull InputStream inputStream, @NotNull OutputStream outputStream)static voidcopyStream(@NotNull InputStream inputStream, @NotNull OutputStream outputStream, @Nullable BootstrapUtils.ProgressMonitor progressMonitor)static voidcopyStreamToFile(InputStream inputStream, Path file)
-
-
-
Field Detail
-
BUFFER_SIZE
public static final int BUFFER_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
calculateAdlerChecksum
public static long calculateAdlerChecksum(File file) throws IOException
- Throws:
IOException
-
calculateCrc32
public static long calculateCrc32(File file) throws IOException
- 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
public static void copyStreamToFile(InputStream inputStream, Path file) throws IOException
- Throws:
IOException
-
addFingerprintHeader
public static void addFingerprintHeader(AgentContext agentContext, org.apache.http.message.AbstractHttpMessage req)
-
-