程序包 proguard.io
接口 DataEntry
- 所有已知实现类:
ClassPathDataEntry,DummyDataEntry,FileDataEntry,NamedDataEntry,RenamedDataEntry,StreamingDataEntry,WrappedDataEntry,ZipDataEntry,ZipFileDataEntry
public interface DataEntry
This interface describes a data entry, for example a ZIP entry, a file, or a directory.
-
方法概要
修饰符和类型方法说明voidCloses 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. the name of the data entry before any renaming or obfuscation.Returns the parent of this data entry, ornull if it doesn't have one.longgetSize()Returns the size of this data entry, in bytes, or -1 if unknown.booleanReturns whether the data entry represents a directory.
-
方法详细资料
-
getName
String getName()Returns the name of this data entry. -
getOriginalName
String getOriginalName()Returns the original name of this data entry, i.e. the name of the data entry before any renaming or obfuscation. -
getSize
long getSize()Returns the size of this data entry, in bytes, or -1 if unknown. -
isDirectory
boolean isDirectory()Returns whether the data entry represents a directory. -
getInputStream
Returns an input stream for reading the content of this data entry. The data entry may not represent a directory.- 抛出:
IOException
-
closeInputStream
Closes the previously retrieved InputStream.- 抛出:
IOException
-
getParent
DataEntry getParent()Returns the parent of this data entry, ornull if it doesn't have one.
-