public class GitLabFileObject extends WebFileObject
logger, METADATA_FRESH_TIMEOUT_MS| Constructor and Description |
|---|
GitLabFileObject(GitLabFileSystem wfs,
java.lang.String pathname,
java.util.Date modifiedDate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
returns true if the file exists.
|
java.io.File |
getFile(ProgressMonitor monitor)
return the file for the WebFileObject.
|
java.io.InputStream |
getInputStream(ProgressMonitor monitor)
opens an inputStream, perhaps transferring the file to a
cache first.
|
canRead, getChannel, getChildren, getLocalFile, getNameExt, getParent, getSize, isData, isFolder, isLocal, isReadOnly, isRoot, lastModified, maybeLoadMetadata, removeLocalFile, setLastModified, setSize, toStringgetCapability, getChannel, getFile, getInputStreampublic GitLabFileObject(GitLabFileSystem wfs, java.lang.String pathname, java.util.Date modifiedDate)
public boolean exists()
FileObjectexists in class WebFileObjectpublic java.io.InputStream getInputStream(ProgressMonitor monitor) throws java.io.IOException
FileObjectgetInputStream in class WebFileObjectmonitor - for monitoring the download. The monitor won't be used when the access
is immediate, for example with local FileObjects.java.io.FileNotFoundException - if the file doesn't exist.java.io.IOExceptionpublic java.io.File getFile(ProgressMonitor monitor) throws java.io.FileNotFoundException, java.io.IOException
WebFileObjectgetFile in class WebFileObjectmonitor - for monitoring the download. The monitor won't be used when the access
is immediate, for example with local FileObjects.java.io.FileNotFoundException - if the file doesn't exist.java.io.IOException - if the file cannot be made local