Class FileRetriever
- java.lang.Object
-
- 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
Constructors Constructor Description FileRetriever()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
retrieveBytes(String url)
File
retrieveFile(String url, String fileNamePrefix, String fileNameExtension)
-
-
-
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
-
-