SFRMTarEntry

public class SFRMTarEntry extends TarEntry
Author:Patrick

Constructors

SFRMTarEntry

public SFRMTarEntry(String name)

Construct an entry with only a name. This allows the programmer to construct the entry’s header “by hand”. File is set to null.

Parameters:
  • name – the entry name

SFRMTarEntry

public SFRMTarEntry(String name, byte linkFlag)

Construct an entry with a name an a link flag.

Parameters:
  • name – the entry name
  • linkFlag – the entry link flag.

SFRMTarEntry

public SFRMTarEntry(File file)

Construct an entry for a file. File is set to file, and the header is constructed from information from the file.

Parameters:
  • file – The file that the entry represents.

SFRMTarEntry

public SFRMTarEntry(byte[] headerBuf)

Construct an entry from an archive’s header bytes. File is set to null.

Parameters:
  • headerBuf – The header bytes from a tar archive entry.

Methods

parseTarHeader

public void parseTarHeader(byte[] header)

Parse an entry’s header information from a header buffer.

Parameters:
  • header – The tar entry header buffer to get information from.

writeEntryHeader

public void writeEntryHeader(byte[] outbuf)

Write an entry’s header information to a header buffer.

Parameters:
  • outbuf – The tar entry header buffer to fill in.