com.atlassian.bamboo.agent.bootstrap
Class BootstrapUtils

java.lang.Object
  extended by com.atlassian.bamboo.agent.bootstrap.BootstrapUtils

public class BootstrapUtils
extends java.lang.Object


Nested Class Summary
static class BootstrapUtils.ProgressMonitor
           
 
Field Summary
static int BUFFER_SIZE
           
 
Method Summary
static long calculateAdlerChecksum(java.io.File file)
           
static long calculateCrc32(java.io.File file)
           
static void copyResponseToFile(org.apache.http.HttpResponse response, java.io.File file)
           
static void copyStream(java.io.InputStream inputStream, java.io.OutputStream outputStream)
           
static void copyStream(java.io.InputStream inputStream, java.io.OutputStream outputStream, BootstrapUtils.ProgressMonitor progressMonitor)
           
static void copyStreamToFile(java.io.InputStream inputStream, java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFFER_SIZE

public static final int BUFFER_SIZE
See Also:
Constant Field Values
Method Detail

calculateAdlerChecksum

public static long calculateAdlerChecksum(java.io.File file)
                                   throws java.io.IOException
Throws:
java.io.IOException

calculateCrc32

public static long calculateCrc32(java.io.File file)
                           throws java.io.IOException
Throws:
java.io.IOException

copyStream

public static void copyStream(@NotNull
                              java.io.InputStream inputStream,
                              @NotNull
                              java.io.OutputStream outputStream)
                       throws java.io.IOException
Throws:
java.io.IOException

copyStream

public static void copyStream(@NotNull
                              java.io.InputStream inputStream,
                              @NotNull
                              java.io.OutputStream outputStream,
                              @Nullable
                              BootstrapUtils.ProgressMonitor progressMonitor)
                       throws java.io.IOException
Throws:
java.io.IOException

copyResponseToFile

public static void copyResponseToFile(org.apache.http.HttpResponse response,
                                      java.io.File file)
                               throws java.io.IOException
Throws:
java.io.IOException

copyStreamToFile

public static void copyStreamToFile(java.io.InputStream inputStream,
                                    java.io.File file)
                             throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.