Package proguard.io

Interface DataEntry

All Known Implementing Classes:
ClassPathDataEntry, DummyDataEntry, FileDataEntry, NamedDataEntry, RenamedDataEntry, StreamingDataEntry, WrappedDataEntry, ZipDataEntry, ZipFileDataEntry

public interface DataEntry
This interface describes a data entry, for exanple a ZIP entry, a file, or a directory.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the previously retrieved InputStream.
    Returns an input stream for reading the content of this data entry.
    Returns the name of this data entry.
    Returns the original name of this data entry, i.e.
    Returns the parent of this data entry, or null if it doesn't have one.
    long
    Returns the size of this data entry, in bytes, or -1 if unknown.
    boolean
    Returns whether the data entry represents a directory.
  • Method Details

    • 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

      InputStream getInputStream() throws IOException
      Returns an input stream for reading the content of this data entry. The data entry may not represent a directory.
      Throws:
      IOException
    • closeInputStream

      void closeInputStream() throws IOException
      Closes the previously retrieved InputStream.
      Throws:
      IOException
    • getParent

      DataEntry getParent()
      Returns the parent of this data entry, or null if it doesn't have one.