Package org.eclipse.packager.rpm.build
Class PayloadRecorder.Finished
java.lang.Object
org.eclipse.packager.rpm.build.PayloadRecorder.Finished
- All Implemented Interfaces:
AutoCloseable,PayloadProvider
- Enclosing class:
PayloadRecorder
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Get 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
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
getArchiveSize
public long getArchiveSize()Description copied from interface:PayloadProviderGet the number of bytes of the uncompressed payload archive- Specified by:
getArchiveSizein interfacePayloadProvider- Returns:
- the number of bytes of the uncompressed payload archive
-
getPayloadSize
public long getPayloadSize()Description copied from interface:PayloadProviderThe number of bytes of the compressed archive file- Specified by:
getPayloadSizein interfacePayloadProvider- Returns:
- the number of bytes of the compressed archive file
-
getPayloadCoding
Description copied from interface:PayloadProviderThe compression method for this compressed archive file- Specified by:
getPayloadCodingin interfacePayloadProvider- Returns:
- the compression method for this compressed archive file
-
getPayloadFlags
Description copied from interface:PayloadProviderThe compression flags for this compressed archive file, if any- Specified by:
getPayloadFlagsin interfacePayloadProvider- Returns:
- the compression flags for this compressed archive file, if any
-
getFileDigestAlgorithm
Description copied from interface:PayloadProviderThe algorithm used for generating file checksum digests whose ordinal is defined inHashAlgorithmTags- Specified by:
getFileDigestAlgorithmin interfacePayloadProvider- Returns:
- the algorithm used for generating file checksum digests whose
ordinal is defined in
HashAlgorithmTags
-
openChannel
Description copied from interface:PayloadProviderOpen a new channel to the payload dataThe caller is responsible for closing the resource
- Specified by:
openChannelin interfacePayloadProvider- Returns:
- the newly created channel
- Throws:
IOException- if opening the channels fails
-
getAdditionalHeader
Description copied from interface:PayloadProviderGet additional header tags.An implementation must always return a new instance, but also every call must provide the same content.
- Specified by:
getAdditionalHeaderin interfacePayloadProvider- Returns:
- A new instance with the additional header entries. Possibly empty,
but never
null.
-