Package com.tccc.kos.commons.kab
Class KabEntry
java.lang.Object
com.tccc.kos.commons.kab.KabEntry
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getFlags()
getGroup()
Return an input stream for the entry.int
getLen()
getName()
int
getPath()
short
getUser()
boolean
isDir()
True if the entry is a directory.boolean
True if the entry is encrypted.void
setChildren
(List<KabEntry> children) void
setFlags
(int flags) void
void
setKabFile
(KabFile kabFile) void
setLen
(int len) void
void
setOffset
(int offset) void
void
Setting the path also sets the name.void
setPermissions
(short permissions) void
-
Constructor Details
-
KabEntry
public KabEntry()
-
-
Method Details
-
setPath
Setting the path also sets the name. -
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
-
getName
-
getOffset
public int getOffset() -
getLen
public int getLen() -
getFlags
public int getFlags() -
getUser
-
getGroup
-
getPermissions
public short getPermissions() -
getParent
-
getChildren
-
getKabFile
-
setName
-
setOffset
public void setOffset(int offset) -
setLen
public void setLen(int len) -
setFlags
public void setFlags(int flags) -
setUser
-
setGroup
-
setPermissions
public void setPermissions(short permissions) -
setParent
-
setChildren
-
setKabFile
-