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 TypeMethodDescriptiongetGroup()
Return an input stream for the entry.int
getLen()
getName()
int
getPath()
short
getUser()
boolean
isDir()
void
setChildren
(List<KabEntry> children) void
setDir
(boolean dir) 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
-
getPath
-
getName
-
getOffset
public int getOffset() -
getLen
public int getLen() -
isDir
public boolean isDir() -
getUser
-
getGroup
-
getPermissions
public short getPermissions() -
getParent
-
getChildren
-
getKabFile
-
setName
-
setOffset
public void setOffset(int offset) -
setLen
public void setLen(int len) -
setDir
public void setDir(boolean dir) -
setUser
-
setGroup
-
setPermissions
public void setPermissions(short permissions) -
setParent
-
setChildren
-
setKabFile
-