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