public class TransferUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
bufferSize |
| Constructor and Description |
|---|
TransferUtil() |
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectiontimeout() |
static InputStream |
getInputStream(URI uri,
int connectionTimeout) |
int |
getTransferTimeout() |
void |
performTransfer(URI uri,
String outfile) |
void |
performTransferToFolder(URI uri,
String outPath) |
void |
setConnectiontimeout(int connectiontimeout) |
void |
setTransferTimeout(int transferTimeout) |
long |
transfer(URI uri,
String outfile) |
public TransferUtil()
throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemExceptionpublic int getConnectiontimeout()
public void setConnectiontimeout(int connectiontimeout)
public int getTransferTimeout()
public void setTransferTimeout(int transferTimeout)
public static InputStream getInputStream(URI uri, int connectionTimeout) throws org.apache.commons.vfs2.FileSystemException
uri - connectionTimeout - org.apache.commons.vfs2.FileSystemExceptionpublic long transfer(URI uri, String outfile) throws Exception
uri - outfile - Exceptionpublic void performTransfer(URI uri, String outfile) throws Exception
uri - outfile - ExceptionCopyright © 2017. All Rights Reserved.