All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.junrar.rarfile.UnixOwnersHeader Maven / Gradle / Ivy

There is a newer version: 7.5.5
Show newest version
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