public class URLResource extends Object implements FileResource
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSLOADER |
static String |
URI |
static String |
URI_CLASSLOADER |
| Modifier and Type | Method and Description |
|---|---|
String |
absolutePath() |
String |
canonicalPath() |
boolean |
canRead() |
boolean |
canWrite() |
static FileResource |
create(String pathname) |
static FileResource |
createClassloaderURI(String pathname) |
boolean |
exists() |
static URL |
getResourceURL(String location) |
JRubyFile |
hackyGetJRubyFile() |
boolean |
isDirectory() |
boolean |
isFile() |
boolean |
isSymLink() |
long |
lastModified() |
long |
length() |
String[] |
list() |
jnr.posix.FileStat |
lstat() |
ChannelDescriptor |
openDescriptor(ModeFlags flags,
int perm) |
InputStream |
openInputStream() |
jnr.posix.FileStat |
stat() |
public static String URI
public static String CLASSLOADER
public static String URI_CLASSLOADER
public String absolutePath()
absolutePath in interface FileResourcepublic String canonicalPath()
canonicalPath in interface FileResourcepublic boolean exists()
exists in interface FileResourcepublic boolean isDirectory()
isDirectory in interface FileResourcepublic boolean isFile()
isFile in interface FileResourcepublic long lastModified()
lastModified in interface FileResourcepublic long length()
length in interface FileResourcepublic boolean canRead()
canRead in interface FileResourcepublic boolean canWrite()
canWrite in interface FileResourcepublic String[] list()
list in interface FileResourceFile.list()public boolean isSymLink()
isSymLink in interface FileResourcepublic jnr.posix.FileStat stat()
stat in interface FileResourcepublic jnr.posix.FileStat lstat()
lstat in interface FileResourcepublic JRubyFile hackyGetJRubyFile()
hackyGetJRubyFile in interface FileResourcepublic InputStream openInputStream()
openInputStream in interface FileResourcepublic ChannelDescriptor openDescriptor(ModeFlags flags, int perm) throws ResourceException
openDescriptor in interface FileResourceResourceExceptionpublic static FileResource createClassloaderURI(String pathname)
public static FileResource create(String pathname)
Copyright © 2001-2014 JRuby. All Rights Reserved.