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) |
toString
public 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()
RemoteFile
public long getSize()
public Calendar getTimestamp()
public InputStream getInputStream() throws IOException
IOException
public boolean writeToLocalDir(File inLocalDir) throws IOException
RemoteFile
writeToLocalDir
in interface RemoteFile
writeToLocalDir
in class AbstractRemoteFile
IOException
public boolean copyLocallyPreservingPath(File inLocalDir) throws IOException
RemoteFile
copyLocallyPreservingPath
in interface RemoteFile
copyLocallyPreservingPath
in class AbstractRemoteFile
IOException
public long writeToStream(OutputStream stream) throws IOException
writeToStream
in interface RemoteFile
writeToStream
in class AbstractRemoteFile
IOException
public boolean writeToLocalFile(File inLocalFile) throws IOException
RemoteFile
writeToLocalFile
in interface RemoteFile
writeToLocalFile
in class AbstractRemoteFile
IOException