public class HTTPRemoteFile extends AbstractRemoteFile
| Constructor and Description |
|---|
HTTPRemoteFile(String inURL) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
copyLocallyPreservingPath(File inLocalDir)
Copies the remote file to the specified local root dir plus the file's remote path.
|
static String |
getDefaultUserAgentString() |
InputStream |
getInputStream() |
static Logger |
getLogger() |
String |
getName() |
String |
getPath() |
String |
getRequestedPath()
The requested path may differ from getPath() if the requested path was a symbolic link.
|
long |
getSize() |
Calendar |
getTimestamp() |
String |
getURL() |
String |
geUserAgentString() |
static void |
setDefaultUserAgentString(String inValue) |
HTTPRemoteFile |
setRequestedPath(String inValue) |
HTTPRemoteFile |
setUserAgentString(String inValue) |
boolean |
writeToLocalDir(File inLocalDir)
Copies the remote file to the specified local directory.
|
boolean |
writeToLocalFile(File inLocalFile)
Copies the remote file to the specified local file.
|
long |
writeToStream(OutputStream stream) |
toStringpublic HTTPRemoteFile(String inURL)
public static void setDefaultUserAgentString(String inValue)
public static String getDefaultUserAgentString()
public HTTPRemoteFile setUserAgentString(String inValue)
public String geUserAgentString()
public HTTPRemoteFile setRequestedPath(String inValue)
public String getRequestedPath()
RemoteFilepublic long getSize()
public Calendar getTimestamp()
public InputStream getInputStream() throws IOException
IOExceptionpublic boolean writeToLocalDir(File inLocalDir) throws IOException
RemoteFilewriteToLocalDir in interface RemoteFilewriteToLocalDir in class AbstractRemoteFileIOExceptionpublic boolean copyLocallyPreservingPath(File inLocalDir) throws IOException
RemoteFilecopyLocallyPreservingPath in interface RemoteFilecopyLocallyPreservingPath in class AbstractRemoteFileIOExceptionpublic long writeToStream(OutputStream stream) throws IOException
writeToStream in interface RemoteFilewriteToStream in class AbstractRemoteFileIOExceptionpublic boolean writeToLocalFile(File inLocalFile) throws IOException
RemoteFilewriteToLocalFile in interface RemoteFilewriteToLocalFile in class AbstractRemoteFileIOException
jataylor@hairyfatguy.com