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 class
BootstrapUtils.ProgressMonitor
-
Field Summary
Fields Modifier and Type Field Description static int
BUFFER_SIZE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 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)
-
-