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() |
String |
toString() |
public NioVirtualFile(Path path)
public InputStream openStream() throws IOException
openStream in interface VirtualFileIOExceptionpublic long getSize()
getSize in interface VirtualFilepublic String getName()
getName in interface VirtualFilepublic List<VirtualFile> getFileChildrenRecursively() throws IOException
getFileChildrenRecursively in interface VirtualFileIOExceptionpublic boolean isFile()
isFile in interface VirtualFilepublic String getPathName()
getPathName in interface VirtualFilepublic VirtualFile getChild(String child)
getChild in interface VirtualFilepublic boolean exists()
exists in interface VirtualFileCopyright © 2019. All rights reserved.