Class RpmWriter

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class RpmWriter
    extends java.lang.Object
    implements java.lang.AutoCloseable
    A low level RPM file writer

    This class handles constructing RPM files. It does not really care about the contents it writes. Still the content and the format of the content is important, but this is taken care of by the RpmBuilder.

    Author:
    Jens Reimann
    • Constructor Detail

      • RpmWriter

        public RpmWriter​(java.nio.file.Path path,
                         java.util.function.Supplier<RpmLead> leadProvider,
                         Header<RpmTag> header,
                         java.nio.charset.Charset headerCharset,
                         java.nio.file.OpenOption... options)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • RpmWriter

        public RpmWriter​(java.nio.file.Path path,
                         LeadBuilder leadBuilder,
                         Header<RpmTag> header,
                         java.nio.file.OpenOption... options)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • RpmWriter

        public RpmWriter​(java.nio.file.Path path,
                         LeadBuilder leadBuilder,
                         Header<RpmTag> header,
                         java.nio.charset.Charset headerCharset,
                         java.nio.file.OpenOption... options)
                  throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • addSignatureProcessor

        public void addSignatureProcessor​(SignatureProcessor processor)
      • addAllSignatureProcessors

        public void addAllSignatureProcessors​(java.util.List<SignatureProcessor> signatureProcessors)
      • setPayload

        public void setPayload​(PayloadProvider payloadProvider)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException