class FileDownloader {

    public InputStream downloadFile() throws IOException, URISyntaxException
    {
        URL url = new URL(myFileUrl);
        ResponseValues response = new ResponseValues();

        @SuppressWarnings("PMD.PrematureDeclaration")
        InputStream stateStream = myServer.sendGet(url, response);

        if (response.getResponseCode() != HttpURLConnection.HTTP_OK)
        {
            throw new IOException(response.getResponseMessage());
        }

        return stateStream;
    }

    public  FileDownloader(HttpServer server, String fileUrl);

}