程序包 proguard.io
类 ZipFileDataEntry
- java.lang.Object
-
- proguard.io.ZipFileDataEntry
-
-
构造器概要
构造器 构造器 说明 ZipFileDataEntry(DataEntry parent, java.util.zip.ZipEntry zipEntry, java.util.zip.ZipFile zipFile)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidcloseInputStream()Closes the previously retrieved InputStream.java.io.InputStreamgetInputStream()Returns an input stream for reading the content of this data entry.java.lang.StringgetName()Returns the name of this data entry.java.lang.StringgetOriginalName()Returns the original name of this data entry, i.e. the name of the data entry before any renaming or obfuscation.DataEntrygetParent()Returns the parent of this data entry, ornull if it doesn't have one.longgetSize()Returns the approximate size of this zip file entry.longgetUncompressedSize()Returns the uncompressed size of the underlying zip entry.booleanisDirectory()Returns whether the data entry represents a directory.java.lang.StringtoString()
-
-
-
构造器详细资料
-
ZipFileDataEntry
public ZipFileDataEntry(DataEntry parent, java.util.zip.ZipEntry zipEntry, java.util.zip.ZipFile zipFile)
-
-
方法详细资料
-
getName
public java.lang.String getName()
从接口复制的说明:DataEntryReturns the name of this data entry.
-
getOriginalName
public java.lang.String getOriginalName()
从接口复制的说明:DataEntryReturns 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.
-
getUncompressedSize
public long getUncompressedSize()
Returns the uncompressed size of the underlying zip entry.
-
isDirectory
public boolean isDirectory()
从接口复制的说明:DataEntryReturns whether the data entry represents a directory.- 指定者:
isDirectory在接口中DataEntry
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException从接口复制的说明:DataEntryReturns an input stream for reading the content of this data entry. The data entry may not represent a directory.- 指定者:
getInputStream在接口中DataEntry- 抛出:
java.io.IOException
-
closeInputStream
public void closeInputStream() throws java.io.IOException从接口复制的说明:DataEntryCloses the previously retrieved InputStream.- 指定者:
closeInputStream在接口中DataEntry- 抛出:
java.io.IOException
-
getParent
public DataEntry getParent()
从接口复制的说明:DataEntryReturns the parent of this data entry, ornull if it doesn't have one.
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
-