
com.github.junrar.rarfile.UnixOwnersHeader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junrar Show documentation
Show all versions of junrar Show documentation
rar decompression library in plain java
package com.github.junrar.rarfile;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.github.junrar.io.Raw;
public class UnixOwnersHeader
extends SubBlockHeader
{
private Log logger = LogFactory.getLog(UnixOwnersHeader.class);
private int ownerNameSize;
private int groupNameSize;
private String owner;
private String group;
public UnixOwnersHeader(SubBlockHeader sb, byte[] uoHeader) {
super(sb);
int pos = 0;
ownerNameSize = Raw.readShortLittleEndian(uoHeader, pos)&0xFFFF;
pos+=2;
groupNameSize = Raw.readShortLittleEndian(uoHeader, pos)&0xFFFF;
pos+=2;
if(pos+ownerNameSize
© 2015 - 2025 Weber Informatics LLC | Privacy Policy