Class PayloadRecorder.Finished

java.lang.Object
org.eclipse.packager.rpm.build.PayloadRecorder.Finished
All Implemented Interfaces:
AutoCloseable, PayloadProvider
Enclosing class:
PayloadRecorder

public class PayloadRecorder.Finished extends Object implements AutoCloseable, PayloadProvider
  • Method Details

    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException
    • getArchiveSize

      public long getArchiveSize()
      Description copied from interface: PayloadProvider
      Get the number of bytes of the uncompressed payload archive
      Specified by:
      getArchiveSize in interface PayloadProvider
      Returns:
      the number of bytes of the uncompressed payload archive
    • getPayloadSize

      public long getPayloadSize()
      Description copied from interface: PayloadProvider
      The number of bytes of the compressed archive file
      Specified by:
      getPayloadSize in interface PayloadProvider
      Returns:
      the number of bytes of the compressed archive file
    • getPayloadCoding

      public PayloadCoding getPayloadCoding()
      Description copied from interface: PayloadProvider
      The compression method for this compressed archive file
      Specified by:
      getPayloadCoding in interface PayloadProvider
      Returns:
      the compression method for this compressed archive file
    • getPayloadFlags

      public Optional<String> getPayloadFlags()
      Description copied from interface: PayloadProvider
      The compression flags for this compressed archive file, if any
      Specified by:
      getPayloadFlags in interface PayloadProvider
      Returns:
      the compression flags for this compressed archive file, if any
    • getFileDigestAlgorithm

      public DigestAlgorithm getFileDigestAlgorithm()
      Description copied from interface: PayloadProvider
      The algorithm used for generating file checksum digests whose ordinal is defined in HashAlgorithmTags
      Specified by:
      getFileDigestAlgorithm in interface PayloadProvider
      Returns:
      the algorithm used for generating file checksum digests whose ordinal is defined in HashAlgorithmTags
    • openChannel

      public FileChannel openChannel() throws IOException
      Description copied from interface: PayloadProvider
      Open a new channel to the payload data

      The caller is responsible for closing the resource

      Specified by:
      openChannel in interface PayloadProvider
      Returns:
      the newly created channel
      Throws:
      IOException - if opening the channels fails
    • getAdditionalHeader

      public Header<RpmTag> getAdditionalHeader()
      Description copied from interface: PayloadProvider
      Get additional header tags.

      An implementation must always return a new instance, but also every call must provide the same content.

      Specified by:
      getAdditionalHeader in interface PayloadProvider
      Returns:
      A new instance with the additional header entries. Possibly empty, but never null.