public class FtpFileObject extends WebFileObject
METADATA_FRESH_TIMEOUT_MS
Modifier | Constructor and Description |
---|---|
protected |
FtpFileObject(WebFileSystem wfs,
java.lang.String pathname,
java.util.Date modifiedDate) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists()
returns true if the file exists.
|
<T> T |
getCapability(java.lang.Class<T> clazz)
returns extra capabilities, such as writing to the filesystem.
|
java.io.InputStream |
getInputStream(ProgressMonitor monitor)
get the input stream, checking for 0 for the lastModified indicating the date was never loaded.
|
java.io.OutputStream |
getOutputStream(boolean append)
returns an output stream that writes to a local file in the file cache, then
sends over the result when it is closed.
|
long |
getSize()
return the fileObject size in bytes.
|
canRead, getChannel, getChildren, getFile, getLocalFile, getNameExt, getParent, isData, isFolder, isLocal, isReadOnly, isRoot, lastModified, maybeLoadMetadata, removeLocalFile, setLastModified, setSize, toString
getChannel, getFile, getInputStream
protected FtpFileObject(WebFileSystem wfs, java.lang.String pathname, java.util.Date modifiedDate)
public long getSize()
WebFileObject
getSize
in class WebFileObject
public boolean exists()
FileObject
exists
in class WebFileObject
public <T> T getCapability(java.lang.Class<T> clazz)
FileObject
getCapability
in class FileObject
public java.io.OutputStream getOutputStream(boolean append) throws java.io.IOException
append
- Append to the remote file. We append to the local copy before uploading it.java.io.IOException
public java.io.InputStream getInputStream(ProgressMonitor monitor) throws java.io.FileNotFoundException, java.io.IOException
getInputStream
in class WebFileObject
monitor
- java.io.FileNotFoundException
java.io.IOException