org.elasticsearch.common.http.client
Class HttpDownloadHelper

java.lang.Object
  extended by org.elasticsearch.common.http.client.HttpDownloadHelper

public class HttpDownloadHelper
extends Object


Nested Class Summary
static interface HttpDownloadHelper.DownloadProgress
          Interface implemented for reporting progress of downloading.
static class HttpDownloadHelper.NullProgress
          do nothing with progress info
static class HttpDownloadHelper.VerboseProgress
          verbose progress system prints to some output stream
 
Constructor Summary
HttpDownloadHelper()
           
 
Method Summary
 boolean download(URL source, File dest, HttpDownloadHelper.DownloadProgress progress)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpDownloadHelper

public HttpDownloadHelper()
Method Detail

download

public boolean download(URL source,
                        File dest,
                        @Nullable
                        HttpDownloadHelper.DownloadProgress progress)
                 throws IOException
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.