|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.das2.util.filesystem.FileObject
org.das2.util.filesystem.LocalFileObject
public class LocalFileObject
| Constructor Summary | |
|---|---|
protected |
LocalFileObject(LocalFileSystem lfs,
java.io.File localRoot,
java.lang.String filename)
|
| Method Summary | |
|---|---|
boolean |
canRead()
returns true if the file can be read by the client. |
boolean |
exists()
returns true if the file exists. |
java.nio.channels.ReadableByteChannel |
getChannel(ProgressMonitor monitor)
opens a Channel, perhaps transferring the file to a local cache first. |
FileObject[] |
getChildren()
returns objects within a folder. |
java.io.File |
getFile()
gets a File object that can be opened by the client. |
java.io.File |
getFile(ProgressMonitor monitor)
gets a File object that can be opened by the client. |
java.io.InputStream |
getInputStream(ProgressMonitor monitor)
opens an inputStream, perhaps transferring the file to a cache first. |
java.lang.String |
getNameExt()
returns the canonical name of the file within the filesystem. |
FileObject |
getParent()
returns the parent FileObject (a folder). |
long |
getSize()
returns the size of the file. |
boolean |
isData()
returns true if the file is a data file that to be used reading or writing data. |
boolean |
isFolder()
indicates the type of FileObject |
boolean |
isLocal()
returns true if the file is locally available, meaning clients can call getFile() and the readble File reference will be available in interactive time. |
boolean |
isReadOnly()
true is the file is read-only. |
boolean |
isRoot()
returns true if this is the root of the filesystem it came from. |
java.util.Date |
lastModified()
returns the Date when the file was last modified. |
java.lang.String |
toString()
|
| Methods inherited from class org.das2.util.filesystem.FileObject |
|---|
getChannel, getInputStream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected LocalFileObject(LocalFileSystem lfs,
java.io.File localRoot,
java.lang.String filename)
| Method Detail |
|---|
public boolean canRead()
FileObject
canRead in class FileObjectpublic FileObject[] getChildren()
FileObject
getChildren in class FileObject
public java.io.InputStream getInputStream(ProgressMonitor monitor)
throws java.io.FileNotFoundException
FileObject
getInputStream in class FileObjectmonitor - 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.public FileObject getParent()
FileObject
getParent in class FileObjectpublic long getSize()
FileObject
getSize in class FileObjectpublic boolean isData()
FileObject
isData in class FileObjectpublic boolean isFolder()
FileObject
isFolder in class FileObjectpublic boolean isReadOnly()
FileObject
isReadOnly in class FileObjectpublic boolean isRoot()
FileObject
isRoot in class FileObjectpublic java.util.Date lastModified()
FileObject
lastModified in class FileObjectpublic boolean exists()
FileObject
exists in class FileObjectpublic java.lang.String getNameExt()
FileObject
getNameExt in class FileObjectpublic java.lang.String toString()
toString in class java.lang.Object
public java.nio.channels.ReadableByteChannel getChannel(ProgressMonitor monitor)
throws java.io.FileNotFoundException
FileObject
getChannel in class FileObjectmonitor - 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.
public java.io.File getFile()
throws java.io.FileNotFoundException
FileObject
getFile in class FileObjectjava.io.FileNotFoundException - if the file doesn't exist.
public java.io.File getFile(ProgressMonitor monitor)
throws java.io.FileNotFoundException
FileObject
getFile in class FileObjectmonitor - 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.public boolean isLocal()
FileObject
isLocal in class FileObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||