play.vfs
Class VirtualFile
java.lang.Object
play.vfs.VirtualFile
public class VirtualFile
- extends java.lang.Object
The VFS used by Play!
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
getName
public java.lang.String getName()
isDirectory
public boolean isDirectory()
relativePath
public java.lang.String relativePath()
list
public java.util.List<VirtualFile> list()
exists
public boolean exists()
inputstream
public java.io.InputStream inputstream()
outputstream
public java.io.OutputStream outputstream()
lastModified
public java.lang.Long lastModified()
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
length
public long length()
child
public VirtualFile child(java.lang.String name)
channel
public java.nio.channels.Channel channel()
open
public static VirtualFile open(java.lang.String file)
open
public static VirtualFile open(java.io.File file)
contentAsString
public java.lang.String contentAsString()
getRealFile
public java.io.File getRealFile()
write
public void write(java.lang.CharSequence string)
content
public byte[] content()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
search
public static VirtualFile search(java.util.Collection<VirtualFile> roots,
java.lang.String path)
fromRelativePath
public static VirtualFile fromRelativePath(java.lang.String relativePath)
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly