SFRMTarOutputStream

public class SFRMTarOutputStream extends TarOutputStream
Author:Patrick Yip

Constructors

SFRMTarOutputStream

public SFRMTarOutputStream(OutputStream os)

SFRMTarOutputStream

public SFRMTarOutputStream(OutputStream os, int blockSize)

SFRMTarOutputStream

public SFRMTarOutputStream(OutputStream os, int blockSize, int recordSize)

Methods

putNextEntry

public void putNextEntry(TarEntry entry)

Put an entry on the output stream. This writes the entry’s header record and positions the output stream for writing the contents of the entry. Once this method is called, the stream is ready for calls to write() to write the entry’s contents. Once the contents are written, closeEntry() MUST be called to ensure that all buffered data is completely written to the output stream.

Parameters:
  • entry – The TarEntry to be written to the archive.
Throws:
  • IOException – on error