Package org.eclipse.packager.rpm.build
Interface PayloadProvider
- All Known Implementing Classes:
PayloadRecorder.Finished
public interface PayloadProvider
-
Method Summary
Modifier and TypeMethodDescriptionGet additional header tags.longGet the number of bytes of the uncompressed payload archiveThe algorithm used for generating file checksum digests whose ordinal is defined inHashAlgorithmTagsThe compression method for this compressed archive fileThe compression flags for this compressed archive file, if anylongThe number of bytes of the compressed archive fileOpen a new channel to the payload data
-
Method Details
-
openChannel
Open a new channel to the payload dataThe caller is responsible for closing the resource
- Returns:
- the newly created channel
- Throws:
IOException- if opening the channels fails
-
getPayloadSize
The number of bytes of the compressed archive file- Returns:
- the number of bytes of the compressed archive file
- Throws:
IOException- if anything goes wrong
-
getArchiveSize
Get the number of bytes of the uncompressed payload archive- Returns:
- the number of bytes of the uncompressed payload archive
- Throws:
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
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
-
getAdditionalHeader
Get additional header tags.An implementation must always return a new instance, but also every call must provide the same content.
- Returns:
- A new instance with the additional header entries. Possibly empty,
but never
null.
-