public class VirtualFile
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.nio.channels.Channel |
channel() |
VirtualFile |
child(java.lang.String name) |
byte[] |
content() |
java.lang.String |
contentAsString() |
boolean |
equals(java.lang.Object other) |
boolean |
exists() |
static VirtualFile |
fromRelativePath(java.lang.String relativePath) |
java.lang.String |
getName() |
java.io.File |
getRealFile() |
int |
hashCode() |
java.io.InputStream |
inputstream() |
boolean |
isDirectory() |
java.lang.Long |
lastModified() |
long |
length() |
java.util.List<VirtualFile> |
list() |
boolean |
matchName(java.lang.String fileName)
Method to check if the name really match (very useful on system without case sensibility (like windows))
|
static VirtualFile |
open(java.io.File file) |
static VirtualFile |
open(java.lang.String file) |
java.io.OutputStream |
outputstream() |
java.lang.String |
relativePath() |
static VirtualFile |
search(java.util.Collection<VirtualFile> roots,
java.lang.String path) |
java.lang.String |
toString() |
void |
write(java.lang.CharSequence string) |
public java.lang.String getName()
public boolean isDirectory()
public java.lang.String relativePath()
public java.util.List<VirtualFile> list()
public boolean exists()
public java.io.InputStream inputstream()
public java.io.OutputStream outputstream()
public java.lang.Long lastModified()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public long length()
public VirtualFile child(java.lang.String name)
public java.nio.channels.Channel channel()
public static VirtualFile open(java.lang.String file)
public static VirtualFile open(java.io.File file)
public java.lang.String contentAsString()
public java.io.File getRealFile()
public void write(java.lang.CharSequence string)
public byte[] content()
public java.lang.String toString()
toString
in class java.lang.Object
public static VirtualFile search(java.util.Collection<VirtualFile> roots, java.lang.String path)
public static VirtualFile fromRelativePath(java.lang.String relativePath)
public boolean matchName(java.lang.String fileName)
fileName
- The given file nameGuillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly