Package proguard.io
Class ZipFileDataEntry
java.lang.Object
proguard.io.ZipFileDataEntry
- All Implemented Interfaces:
DataEntry
This
DataEntry represents a ZIP entry.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCloses the previously retrieved InputStream.Returns an input stream for reading the content of this data entry.getName()Returns the name of this data entry.Returns the original name of this data entry, i.e.Returns the parent of this data entry, ornull if it doesn't have one.longgetSize()Returns the approximate size of this zip file entry.longReturns the uncompressed size of the underlying zip entry.booleanReturns whether the data entry represents a directory.toString()
-
Constructor Details
-
ZipFileDataEntry
-
-
Method Details
-
getName
Description copied from interface:DataEntryReturns the name of this data entry. -
getOriginalName
Description copied from interface:DataEntryReturns the original name of this data entry, i.e. the name of the data entry before any renaming or obfuscation.- Specified by:
getOriginalNamein interfaceDataEntry
-
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()Description copied from interface:DataEntryReturns whether the data entry represents a directory.- Specified by:
isDirectoryin interfaceDataEntry
-
getInputStream
Description copied from interface:DataEntryReturns an input stream for reading the content of this data entry. The data entry may not represent a directory.- Specified by:
getInputStreamin interfaceDataEntry- Throws:
IOException
-
closeInputStream
Description copied from interface:DataEntryCloses the previously retrieved InputStream.- Specified by:
closeInputStreamin interfaceDataEntry- Throws:
IOException
-
getParent
Description copied from interface:DataEntryReturns the parent of this data entry, ornull if it doesn't have one. -
toString
-