com.atlassian.aws.utils
Interface URLFetcher


public interface URLFetcher

An interface for fetching data from URLs.


Method Summary
 byte[] fetchData(String url)
          Fetches bytes from the given URL.
 String fetchString(String url)
          Fetches a String from the given URL.
 

Method Detail

fetchString

@NotNull
String fetchString(String url)
                   throws IOException

Fetches a String from the given URL.

Parameters:
url - The URL from which to fetch the String.
Returns:
The fetched String.
Throws:
IOException - If there was a problem fetching the String.

fetchData

@NotNull
byte[] fetchData(String url)
                 throws IOException

Fetches bytes from the given URL.

Parameters:
url - The URL from which to fetch the data.
Returns:
The fetched String.
Throws:
IOException - If there was a problem fetching the String.


Copyright © 2015 Atlassian. All rights reserved.