Class ZipFile

  • All Implemented Interfaces:
    Vfs.File

    public class ZipFile
    extends java.lang.Object
    implements Vfs.File
    an implementation of Vfs.File for ZipEntry
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.zip.ZipEntry entry  
      private ZipDir root  
    • Constructor Summary

      Constructors 
      Constructor Description
      ZipFile​(ZipDir root, java.util.zip.ZipEntry entry)  
    • Field Detail

      • root

        private final ZipDir root
      • entry

        private final java.util.zip.ZipEntry entry
    • Constructor Detail

      • ZipFile

        public ZipFile​(ZipDir root,
                       java.util.zip.ZipEntry entry)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Vfs.File
      • getRelativePath

        public java.lang.String getRelativePath()
        Specified by:
        getRelativePath in interface Vfs.File
      • openInputStream

        public java.io.InputStream openInputStream()
                                            throws java.io.IOException
        Specified by:
        openInputStream in interface Vfs.File
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object