程序包 proguard.io

类 ZipFileDataEntry

java.lang.Object
proguard.io.ZipFileDataEntry
所有已实现的接口:
DataEntry

public class ZipFileDataEntry extends Object implements DataEntry
This DataEntry represents a ZIP entry.
  • 构造器详细资料

  • 方法详细资料

    • getName

      public String getName()
      从接口复制的说明: DataEntry
      Returns the name of this data entry.
      指定者:
      getName 在接口中 DataEntry
    • getOriginalName

      public String getOriginalName()
      从接口复制的说明: DataEntry
      Returns the original name of this data entry, i.e. the name of the data entry before any renaming or obfuscation.
      指定者:
      getOriginalName 在接口中 DataEntry
    • getSize

      public long getSize()
      Returns the approximate size of this zip file entry. Specifically, this returns the maximum of the entry's uncompressed and compressed sizes.

      NB: For small entry sizes and incompressible data, this can lead to unexpected results, such as the returned result being larger than the logical/uncompressed size of the entry.

      指定者:
      getSize 在接口中 DataEntry
    • getUncompressedSize

      public long getUncompressedSize()
      Returns the uncompressed size of the underlying zip entry.
    • isDirectory

      public boolean isDirectory()
      从接口复制的说明: DataEntry
      Returns whether the data entry represents a directory.
      指定者:
      isDirectory 在接口中 DataEntry
    • getInputStream

      public InputStream getInputStream() throws IOException
      从接口复制的说明: DataEntry
      Returns an input stream for reading the content of this data entry. The data entry may not represent a directory.
      指定者:
      getInputStream 在接口中 DataEntry
      抛出:
      IOException
    • closeInputStream

      public void closeInputStream() throws IOException
      从接口复制的说明: DataEntry
      Closes the previously retrieved InputStream.
      指定者:
      closeInputStream 在接口中 DataEntry
      抛出:
      IOException
    • getParent

      public DataEntry getParent()
      从接口复制的说明: DataEntry
      Returns the parent of this data entry, or null if it doesn't have one.
      指定者:
      getParent 在接口中 DataEntry
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object