Class KabEntry

java.lang.Object
com.tccc.kos.commons.kab.KabEntry

public class KabEntry extends Object
Data class that contains information about a single entry in a KAB archive file.

The fields are:

 private String  name;         // the name of this entry
 private int     offset;       // the offset of this entry in the archive
 private int     len;          // the length of this entry, in bytes
 private boolean dir;          // true if entry is a directory, otherwise it's a file
 private String  user;         // file owner username
 private String  group;        // file owner group name
 private short   permissions;  // Unix-style permissions
 
Since:
1.0
Version:
2022-09-28
  • Constructor Details

    • KabEntry

      public KabEntry()
  • Method Details

    • setPath

      public void setPath(String path)
      Setting the path also sets the name.
    • getInputStream

      public InputStream getInputStream()
      Return an input stream for the entry.
      Returns:
      the input stream for the file or null if directory
    • isDir

      public boolean isDir()
      True if the entry is a directory.
    • isEncrypted

      public boolean isEncrypted()
      True if the entry is encrypted.
    • getPath

      public String getPath()
    • getName

      public String getName()
    • getOffset

      public int getOffset()
    • getLen

      public int getLen()
    • getFlags

      public int getFlags()
    • getUser

      public String getUser()
    • getGroup

      public String getGroup()
    • getPermissions

      public short getPermissions()
    • getParent

      public KabEntry getParent()
    • getChildren

      public List<KabEntry> getChildren()
    • getKabFile

      public KabFile getKabFile()
    • setName

      public void setName(String name)
    • setOffset

      public void setOffset(int offset)
    • setLen

      public void setLen(int len)
    • setFlags

      public void setFlags(int flags)
    • setUser

      public void setUser(String user)
    • setGroup

      public void setGroup(String group)
    • setPermissions

      public void setPermissions(short permissions)
    • setParent

      public void setParent(KabEntry parent)
    • setChildren

      public void setChildren(List<KabEntry> children)
    • setKabFile

      public void setKabFile(KabFile kabFile)