public final class PureZipFileSystem extends Object implements org.jboss.vfs.spi.FileSystem
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
IOException
URISyntaxException
public File getFile(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target) throws IOException
getFile
in interface org.jboss.vfs.spi.FileSystem
IOException
public InputStream openInputStream(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target) throws IOException
openInputStream
in interface org.jboss.vfs.spi.FileSystem
IOException
public boolean delete(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
delete
in interface org.jboss.vfs.spi.FileSystem
public long getSize(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
getSize
in interface org.jboss.vfs.spi.FileSystem
public long getLastModified(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
getLastModified
in interface org.jboss.vfs.spi.FileSystem
public boolean exists(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
exists
in interface org.jboss.vfs.spi.FileSystem
public boolean isFile(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
isFile
in interface org.jboss.vfs.spi.FileSystem
public boolean isDirectory(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
isDirectory
in interface org.jboss.vfs.spi.FileSystem
public List<String> getDirectoryEntries(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
getDirectoryEntries
in interface org.jboss.vfs.spi.FileSystem
public CodeSigner[] getCodeSigners(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
getCodeSigners
in interface org.jboss.vfs.spi.FileSystem
public boolean isReadOnly()
isReadOnly
in interface org.jboss.vfs.spi.FileSystem
public File getMountSource()
getMountSource
in interface org.jboss.vfs.spi.FileSystem
public URI getRootURI() throws URISyntaxException
getRootURI
in interface org.jboss.vfs.spi.FileSystem
URISyntaxException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.jboss.vfs.spi.FileSystem
IOException
Copyright © 2019. All rights reserved.