public class NullDeviceResource extends Object
| 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 |
toString() |
public String absolutePath()
public String canonicalPath()
public long length()
public long lastModified()
public boolean exists()
public boolean canExecute()
canExecute in interface FileResourcepublic int errno()
errno in interface FileResourcepublic boolean isFile()
public boolean isDirectory()
public boolean isSymLink()
public boolean canRead()
public boolean canWrite()
public String[] list()
File.list()public jnr.posix.FileStat stat()
public jnr.posix.FileStat lstat()
public JRubyFile hackyGetJRubyFile()
public Channel openChannel(ModeFlags flags, int perm) throws ResourceException
ResourceExceptionpublic InputStream inputStream() throws ResourceException
FileResourceinputStream in interface FileResourceResourceException - is the file does not exists or if the resource is a directoryCopyright © 2001-2017 JRuby. All Rights Reserved.