Package org.teiid.query.metadata
Class NioVirtualFile
- java.lang.Object
-
- org.teiid.query.metadata.NioVirtualFile
-
- All Implemented Interfaces:
VirtualFile
public class NioVirtualFile extends Object implements VirtualFile
-
-
Constructor Summary
Constructors Constructor Description NioVirtualFile(Path path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()VirtualFilegetChild(String child)List<VirtualFile>getFileChildrenRecursively()StringgetName()StringgetPathName()longgetSize()booleanisFile()InputStreamopenStream()StringtoString()
-
-
-
Constructor Detail
-
NioVirtualFile
public NioVirtualFile(Path path)
-
-
Method Detail
-
openStream
public InputStream openStream() throws IOException
- Specified by:
openStreamin interfaceVirtualFile- Throws:
IOException
-
getSize
public long getSize()
- Specified by:
getSizein interfaceVirtualFile
-
getName
public String getName()
- Specified by:
getNamein interfaceVirtualFile
-
getFileChildrenRecursively
public List<VirtualFile> getFileChildrenRecursively() throws IOException
- Specified by:
getFileChildrenRecursivelyin interfaceVirtualFile- Throws:
IOException
-
isFile
public boolean isFile()
- Specified by:
isFilein interfaceVirtualFile
-
getPathName
public String getPathName()
- Specified by:
getPathNamein interfaceVirtualFile
-
getChild
public VirtualFile getChild(String child)
- Specified by:
getChildin interfaceVirtualFile
-
exists
public boolean exists()
- Specified by:
existsin interfaceVirtualFile
-
-