public class NioVirtualFile extends Object implements VirtualFile
Constructor and Description |
---|
NioVirtualFile(Path path) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists() |
VirtualFile |
getChild(String child) |
List<VirtualFile> |
getFileChildrenRecursively() |
String |
getName() |
String |
getPathName() |
long |
getSize() |
boolean |
isFile() |
InputStream |
openStream() |
public NioVirtualFile(Path path)
public InputStream openStream() throws IOException
openStream
in interface VirtualFile
IOException
public long getSize()
getSize
in interface VirtualFile
public String getName()
getName
in interface VirtualFile
public List<VirtualFile> getFileChildrenRecursively() throws IOException
getFileChildrenRecursively
in interface VirtualFile
IOException
public boolean isFile()
isFile
in interface VirtualFile
public String getPathName()
getPathName
in interface VirtualFile
public VirtualFile getChild(String child)
getChild
in interface VirtualFile
public boolean exists()
exists
in interface VirtualFile
Copyright © 2019. All rights reserved.