Package proguard.io
Interface DataEntry
-
- All Known Implementing Classes:
ClassPathDataEntry,DummyDataEntry,FileDataEntry,NamedDataEntry,RenamedDataEntry,StreamingDataEntry,WrappedDataEntry,ZipDataEntry,ZipFileDataEntry
public interface DataEntryThis interface describes a data entry, for exanple a ZIP entry, a file, or a directory.
-
-
Method Summary
All Methods Instance Methods Abstract 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 size of this data entry, in bytes, or -1 if unknown.booleanisDirectory()Returns whether the data entry represents a directory.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the name of this data entry.
-
getOriginalName
java.lang.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
java.io.InputStream getInputStream() throws java.io.IOExceptionReturns an input stream for reading the content of this data entry. The data entry may not represent a directory.- Throws:
java.io.IOException
-
closeInputStream
void closeInputStream() throws java.io.IOExceptionCloses the previously retrieved InputStream.- Throws:
java.io.IOException
-
getParent
DataEntry getParent()
Returns the parent of this data entry, ornull if it doesn't have one.
-
-