Package org.eclipse.packager.rpm.build
Interface PayloadProvider
-
- All Known Implementing Classes:
PayloadRecorder
public interface PayloadProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetArchiveSize()Get the number of bytes of the uncompressed payload archiveDigestAlgorithmgetFileDigestAlgorithm()The algorithm used for generating file checksum digests whose ordinal is defined inHashAlgorithmTagsPayloadCodinggetPayloadCoding()The compression method for this compressed archive filejava.util.Optional<java.lang.String>getPayloadFlags()The compression flags for this compressed archive file, if anylonggetPayloadSize()The number of bytes of the compressed archive filejava.nio.channels.ReadableByteChannelopenChannel()Open a new channel to the payload data
-
-
-
Method Detail
-
openChannel
java.nio.channels.ReadableByteChannel openChannel() throws java.io.IOExceptionOpen a new channel to the payload dataThe caller is responsible for closing the resource
- Returns:
- the newly created channel
- Throws:
java.io.IOException- if opening the channels fails
-
getPayloadSize
long getPayloadSize() throws java.io.IOExceptionThe number of bytes of the compressed archive file- Returns:
- the number of bytes of the compressed archive file
- Throws:
java.io.IOException- if anything goes wrong
-
getArchiveSize
long getArchiveSize() throws java.io.IOExceptionGet the number of bytes of the uncompressed payload archive- Returns:
- the number of bytes of the uncompressed payload archive
- Throws:
java.io.IOException- if anything goes wrong
-
getPayloadCoding
PayloadCoding getPayloadCoding()
The compression method for this compressed archive file- Returns:
- the compression method for this compressed archive file
-
getPayloadFlags
java.util.Optional<java.lang.String> getPayloadFlags()
The compression flags for this compressed archive file, if any- Returns:
- the compression flags for this compressed archive file, if any
-
getFileDigestAlgorithm
DigestAlgorithm getFileDigestAlgorithm()
The algorithm used for generating file checksum digests whose ordinal is defined inHashAlgorithmTags- Returns:
- the algorithm used for generating file checksum digests whose
ordinal is defined in
HashAlgorithmTags
-
-