code: public static void downloadObjectToFile(S3Object s3Object,
              final File destinationFile, boolean performIntegrityCheck,
              boolean appendData) {
          downloadToFile(s3Object, destinationFile, performIntegrityCheck, appendData, -1);
      }
docs: Downloads an S3Object, as returned from
  {@link AmazonS3Client#getObject(com.amazonaws.services.s3.model.GetObjectRequest)},
  to the specified file.
  
  @param s3Object
  The S3Object containing a reference to an InputStream
  containing the object's data.
  @param destinationFile
  The file to store the object's data in.
  @param performIntegrityCheck
  Boolean valuable to indicate whether to perform integrity check
  @param appendData
  appends the data to end of the file.