com.judoscript.util
Class TarFS
java.lang.Object
com.judoscript.util.VirtualFS
com.judoscript.util.TarFS
public class TarFS
- extends VirtualFS
This class represents a read-only file system for a tar file.
It is only good for listing and searching, not copying.
Constructor Summary |
TarFS(java.lang.String tarFile)
|
TarFS(org.apache.commons.compress.archivers.tar.TarInputStream tar,
java.lang.String tarFile)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TarFS
public TarFS(java.lang.String tarFile)
throws java.io.IOException
- Throws:
java.io.IOException
TarFS
public TarFS(org.apache.commons.compress.archivers.tar.TarInputStream tar,
java.lang.String tarFile)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
getFile
public java.io.File getFile(java.lang.String path)
throws java.io.FileNotFoundException
- Specified by:
getFile
in class VirtualFS
- Throws:
java.io.FileNotFoundException
getTarFileName
public java.lang.String getTarFileName()