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 FileResource
public int errno()
errno
in interface FileResource
public 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
ResourceException
public InputStream inputStream() throws ResourceException
FileResource
inputStream
in interface FileResource
ResourceException
- is the file does not exists or if the resource is a directoryCopyright © 2001-2017 JRuby. All Rights Reserved.