com.atlassian.confluence.it.resource
Class FileRetriever

java.lang.Object
  extended by com.atlassian.confluence.it.resource.FileRetriever

public class FileRetriever
extends Object

Very simple class to retrieve files from arbitrary URLs (with the intention they be URLs from Confluence).


Constructor Summary
FileRetriever()
           
 
Method Summary
 byte[] retrieveBytes(String url)
           
 File retrieveFile(String url, String fileNamePrefix, String fileNameExtension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileRetriever

public FileRetriever()
Method Detail

retrieveFile

public File retrieveFile(String url,
                         String fileNamePrefix,
                         String fileNameExtension)
                  throws IOException
Throws:
IOException

retrieveBytes

public byte[] retrieveBytes(String url)
                     throws IOException
Throws:
IOException


Copyright © 2003-2013 Atlassian. All Rights Reserved.