public interface FileResource
| Modifier and Type | Method and Description | 
|---|---|
| String | absolutePath() | 
| boolean | canExecute() | 
| String | canonicalPath() | 
| boolean | canRead() | 
| boolean | canWrite() | 
| int | errno() | 
| boolean | exists() | 
| JRubyFile | hackyGetJRubyFile() | 
| InputStream | inputStream()Opens a new input stream to read the contents of a resource and returns it. | 
| boolean | isDirectory() | 
| boolean | isFile() | 
| boolean | isSymLink() | 
| long | lastModified() | 
| long | length() | 
| String[] | list() | 
| jnr.posix.FileStat | lstat() | 
| Channel | openChannel(ModeFlags flags,
           int perm) | 
| jnr.posix.FileStat | stat() | 
String absolutePath()
String canonicalPath()
boolean exists()
boolean isDirectory()
boolean isFile()
boolean canExecute()
int errno()
long lastModified()
long length()
boolean canRead()
boolean canWrite()
String[] list()
File.list()boolean isSymLink()
jnr.posix.FileStat stat()
jnr.posix.FileStat lstat()
JRubyFile hackyGetJRubyFile()
InputStream inputStream() throws ResourceException
ResourceException - is the file does not exists or if the resource is a directoryChannel openChannel(ModeFlags flags, int perm) throws ResourceException
ResourceExceptionCopyright © 2001-2015 JRuby. All Rights Reserved.