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.FileSystemException
public 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.FileSystemException
public long transfer(URI uri, String outfile) throws Exception
uri
- outfile
- Exception
public void performTransfer(URI uri, String outfile) throws Exception
uri
- outfile
- Exception
Copyright © 2017. All Rights Reserved.