Package org.teiid.query.metadata
Class NioZipFileSystem
- java.lang.Object
-
- org.teiid.query.metadata.NioZipFileSystem
-
public class NioZipFileSystem extends Object
-
-
Constructor Summary
Constructors Constructor Description NioZipFileSystem()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NioVirtualFile
mount(URI uri)
Get the rootVirtualFile
for the given uri.static NioVirtualFile
mount(URL url)
Get the rootVirtualFile
for the given JAR url.
-
-
-
Method Detail
-
mount
public static NioVirtualFile mount(URL url) throws IOException, URISyntaxException
Get the rootVirtualFile
for the given JAR url. Any previous filesystem for this url will be closed. The returned file will be used to auto close the filesystem. It should be strongly held until the filesystem is no longer needed.- Parameters:
url
-- Returns:
- Throws:
IOException
URISyntaxException
-
mount
public static NioVirtualFile mount(URI uri) throws IOException
Get the rootVirtualFile
for the given uri. Any previous filesystem for this url will be closed. The returned file will be used to auto close the filesystem. It should be strongly held until the filesystem is no longer needed.- Parameters:
uri
-- Returns:
- Throws:
IOException
-
-