Package proguard.io

Class NamedDataEntry

java.lang.Object
proguard.io.NamedDataEntry
All Implemented Interfaces:
DataEntry

public class NamedDataEntry extends Object implements DataEntry
This DataEntry represents a named output entry with a parent.
  • Constructor Details

    • NamedDataEntry

      public NamedDataEntry(DataEntry parent, String name, long size, boolean isDirectory)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: DataEntry
      Returns the name of this data entry.
      Specified by:
      getName in interface DataEntry
    • getOriginalName

      public String getOriginalName()
      Description copied from interface: DataEntry
      Returns the original name of this data entry, i.e. the name of the data entry before any renaming or obfuscation.
      Specified by:
      getOriginalName in interface DataEntry
    • getSize

      public long getSize()
      Description copied from interface: DataEntry
      Returns the size of this data entry, in bytes, or -1 if unknown.
      Specified by:
      getSize in interface DataEntry
    • isDirectory

      public boolean isDirectory()
      Description copied from interface: DataEntry
      Returns whether the data entry represents a directory.
      Specified by:
      isDirectory in interface DataEntry
    • getInputStream

      public InputStream getInputStream() throws IOException
      Description copied from interface: DataEntry
      Returns an input stream for reading the content of this data entry. The data entry may not represent a directory.
      Specified by:
      getInputStream in interface DataEntry
      Throws:
      IOException
    • closeInputStream

      public void closeInputStream() throws IOException
      Description copied from interface: DataEntry
      Closes the previously retrieved InputStream.
      Specified by:
      closeInputStream in interface DataEntry
      Throws:
      IOException
    • getParent

      public DataEntry getParent()
      Description copied from interface: DataEntry
      Returns the parent of this data entry, or null if it doesn't have one.
      Specified by:
      getParent in interface DataEntry
    • toString

      public String toString()
      Overrides:
      toString in class Object