Package proguard.io
Class ZipFileDataEntry
- java.lang.Object
- 
- proguard.io.ZipFileDataEntry
 
- 
- 
Constructor SummaryConstructors Constructor Description ZipFileDataEntry(DataEntry parent, java.util.zip.ZipEntry zipEntry, java.util.zip.ZipFile zipFile)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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()
 
- 
- 
- 
Constructor Detail- 
ZipFileDataEntrypublic ZipFileDataEntry(DataEntry parent, java.util.zip.ZipEntry zipEntry, java.util.zip.ZipFile zipFile) 
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() Description copied from interface:DataEntryReturns the name of this data entry.
 - 
getOriginalNamepublic java.lang.String 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 interface- DataEntry
 
 - 
getSizepublic 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. 
 - 
getUncompressedSizepublic long getUncompressedSize() Returns the uncompressed size of the underlying zip entry.
 - 
isDirectorypublic boolean isDirectory() Description copied from interface:DataEntryReturns whether the data entry represents a directory.- Specified by:
- isDirectoryin interface- DataEntry
 
 - 
getInputStreampublic java.io.InputStream getInputStream() throws java.io.IOExceptionDescription 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 interface- DataEntry
- Throws:
- java.io.IOException
 
 - 
closeInputStreampublic void closeInputStream() throws java.io.IOExceptionDescription copied from interface:DataEntryCloses the previously retrieved InputStream.- Specified by:
- closeInputStreamin interface- DataEntry
- Throws:
- java.io.IOException
 
 - 
getParentpublic DataEntry getParent() Description copied from interface:DataEntryReturns the parent of this data entry, ornull if it doesn't have one.
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-