public final class PureZipFileSystem extends Object implements org.jboss.vfs.spi.FileSystem
This implementation is backed by a zip file. The provided file must be owned by this instance; otherwise, if the file disappears unexpectedly, the filesystem will malfunction.
| Constructor and Description |
|---|
PureZipFileSystem(File archiveFile)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
delete(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
boolean |
exists(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
CodeSigner[] |
getCodeSigners(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
List<String> |
getDirectoryEntries(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
File |
getFile(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
long |
getLastModified(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
File |
getMountSource() |
URI |
getRootURI() |
long |
getSize(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
boolean |
isDirectory(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
boolean |
isFile(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
boolean |
isReadOnly() |
static org.jboss.vfs.VirtualFile |
mount(URL url) |
InputStream |
openInputStream(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
public PureZipFileSystem(File archiveFile) throws IOException
archiveFile - the original archive fileIOException - if an I/O error occurspublic static org.jboss.vfs.VirtualFile mount(URL url) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionpublic File getFile(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target) throws IOException
getFile in interface org.jboss.vfs.spi.FileSystemIOExceptionpublic InputStream openInputStream(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target) throws IOException
openInputStream in interface org.jboss.vfs.spi.FileSystemIOExceptionpublic boolean delete(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target)
delete in interface org.jboss.vfs.spi.FileSystempublic long getSize(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target)
getSize in interface org.jboss.vfs.spi.FileSystempublic long getLastModified(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target)
getLastModified in interface org.jboss.vfs.spi.FileSystempublic boolean exists(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target)
exists in interface org.jboss.vfs.spi.FileSystempublic boolean isFile(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target)
isFile in interface org.jboss.vfs.spi.FileSystempublic boolean isDirectory(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target)
isDirectory in interface org.jboss.vfs.spi.FileSystempublic List<String> getDirectoryEntries(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
getDirectoryEntries in interface org.jboss.vfs.spi.FileSystempublic CodeSigner[] getCodeSigners(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
getCodeSigners in interface org.jboss.vfs.spi.FileSystempublic boolean isReadOnly()
isReadOnly in interface org.jboss.vfs.spi.FileSystempublic File getMountSource()
getMountSource in interface org.jboss.vfs.spi.FileSystempublic URI getRootURI() throws URISyntaxException
getRootURI in interface org.jboss.vfs.spi.FileSystemURISyntaxExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface org.jboss.vfs.spi.FileSystemIOExceptionCopyright © 2019. All rights reserved.