Package org.icij.datashare.io
Class RemoteFiles
- java.lang.Object
-
- org.icij.datashare.io.RemoteFiles
-
public class RemoteFiles extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddownload(String remoteKey, File localFile)static RemoteFilesgetAuthenticated()static RemoteFilesgetDefault()booleanisSync(String remoteKey, File localFile)voidshutdown()voidupload(File localFile, String remoteKey)
-
-
-
Method Detail
-
getDefault
public static RemoteFiles getDefault()
-
getAuthenticated
public static RemoteFiles getAuthenticated()
-
upload
public void upload(File localFile, String remoteKey) throws InterruptedException, FileNotFoundException
-
download
public void download(String remoteKey, File localFile) throws InterruptedException, IOException
- Throws:
InterruptedExceptionIOException
-
isSync
public boolean isSync(String remoteKey, File localFile) throws IOException
- Throws:
IOException
-
shutdown
public void shutdown()
-
-