Skip navigation links

Oracle® On Track Communication SDK Documentation
Release 1(1.0)

E20955-01


waggle.core.http
Class XHTTPDownload

java.lang.Object
  extended by waggle.core.http.XHTTPDownload


public final class XHTTPDownload
extends Object

Method Summary
static File downloadToFile(URL url, File file)
          Download the specified URL to a file.
static InputStream downloadToInputStream(URL url)
          Download the specified URL to a InputStream.
static String downloadToString(URL url)
          Download the specified URL to a String.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

downloadToInputStream

public static InputStream downloadToInputStream(URL url)
Download the specified URL to a InputStream.
Parameters:
url - The URL to download.
Returns:
The InputStream.

downloadToFile

public static File downloadToFile(URL url,
                                  File file)
Download the specified URL to a file.
Parameters:
url - The URL to download.
file - The file.
Returns:
The file.

downloadToString

public static String downloadToString(URL url)
Download the specified URL to a String.
Parameters:
url - The URL to download.
Returns:
The String.

Skip navigation links

Oracle® On Track Communication SDK Documentation
Release 1(1.0)

E20955-01


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.