## org.das2.util.filesystem.WebFileObject

## METADATA_FRESH_TIMEOUT_MS

## canRead

canRead( ) → boolean

### Returns:

boolean
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## exists

exists( ) → boolean

### Returns:

boolean
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getChannel

getChannel( ProgressMonitor monitor ) → java.nio.channels.ReadableByteChannel

return a Channel for the resource. If the resource can be made locally available, a FileChannel is returned.

### Parameters

monitor - a ProgressMonitor

### Returns:

a java.nio.channels.ReadableByteChannel
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getChildren

getChildren( ) → org.das2.util.filesystem.FileObject[]

### Returns:

org.das2.util.filesystem.FileObject[]
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getFile

getFile( ProgressMonitor monitor ) → java.io.File

return the file for the WebFileObject.

### Parameters

monitor - a ProgressMonitor

### Returns:

a java.io.File
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getInputStream

getInputStream( ProgressMonitor monitor ) → java.io.InputStream

### Parameters

monitor - a ProgressMonitor

### Returns:

java.io.InputStream
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getNameExt

getNameExt( ) → String

### Returns:

java.lang.String
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getParent

getParent( ) → org.das2.util.filesystem.FileObject

### Returns:

a WebFileObject referencing the parent directory.
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getSize

getSize( ) → long

return the fileObject size in bytes. This may contact the server to get the size, and this caches the size.

### Returns:

a long
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## isData

isData( ) → boolean

### Returns:

boolean
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## isFolder

isFolder( ) → boolean

### Returns:

boolean
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## isLocal

isLocal( ) → boolean

returns true is the file is locally available, meaning clients can call getFile() and the readable File reference will be available in interactive time. For FileObjects from HttpFileSystem, a HEAD request is made to ensure that the local file is as new as the website one (when offline=false).

### Returns:

true if the file is local and can be used without web access.
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## isReadOnly

isReadOnly( ) → boolean

### Returns:

boolean
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## isRoot

isRoot( ) → boolean

### Returns:

boolean
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## lastModified

lastModified( ) → java.util.Date

### Returns:

java.util.Date
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## removeLocalFile

removeLocalFile( ) → boolean

### Returns:

boolean
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## toString

toString( ) → String

### Returns:

java.lang.String
[search for examples] [view on GitHub] [view on old javadoc] [view source]