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


Field Summary
static int BUFFER_SIZE
           
 
Method Summary
static java.lang.Long calculateCrc32(java.io.File file)
           
static void copyStream(java.io.InputStream inputStream, java.io.OutputStream outputStream)
           
static void copyStreamToFile(java.io.InputStream inputStream, java.io.File file)
           
static java.lang.String getAdlerChecksum(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

getAdlerChecksum

public static java.lang.String getAdlerChecksum(java.io.File file)
                                         throws java.io.IOException
Throws:
java.io.IOException

calculateCrc32

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

copyStream

public static void copyStream(java.io.InputStream inputStream,
                              java.io.OutputStream outputStream)
                       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 © 2012 Atlassian. All Rights Reserved.