Package org.eclipse.packager.rpm.build
Class RpmWriter
java.lang.Object
org.eclipse.packager.rpm.build.RpmWriter
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionRpmWriter(Path path, Supplier<RpmLead> leadProvider, Header<RpmTag> header, Charset headerCharset, OpenOption... options) RpmWriter(Path path, LeadBuilder leadBuilder, Header<RpmTag> header, Charset headerCharset, OpenOption... options) RpmWriter(Path path, LeadBuilder leadBuilder, Header<RpmTag> header, OpenOption... options) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllSignatureProcessors(List<SignatureProcessor> signatureProcessors) voidaddSignatureProcessor(SignatureProcessor processor) voidclose()voidsetPayload(PayloadProvider payloadProvider)
-
Constructor Details
-
RpmWriter
public RpmWriter(Path path, Supplier<RpmLead> leadProvider, Header<RpmTag> header, Charset headerCharset, OpenOption... options) throws IOException - Throws:
IOException
-
RpmWriter
public RpmWriter(Path path, LeadBuilder leadBuilder, Header<RpmTag> header, OpenOption... options) throws IOException - Throws:
IOException
-
RpmWriter
public RpmWriter(Path path, LeadBuilder leadBuilder, Header<RpmTag> header, Charset headerCharset, OpenOption... options) throws IOException - Throws:
IOException
-
-
Method Details
-
addSignatureProcessor
-
addAllSignatureProcessors
-
setPayload
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-