Package org.apache.tomcat.jakartaee
Class ManifestConverter
java.lang.Object
org.apache.tomcat.jakartaee.ManifestConverter
- All Implemented Interfaces:
Converter
Updates Manifests.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if the file can be processed by this converter.boolean
convert
(String path, InputStream src, OutputStream dest, EESpecProfile profile) Copies the source to the destination, converting it if necessary, according to the requirements of the given profile.private boolean
isCryptoSignatureEntry
(Attributes attributes) private void
removeSignatures
(Manifest manifest) private String
replaceVersion
(String entryValue) private boolean
updateValues
(Attributes attributes, EESpecProfile profile) private boolean
updateValues
(Manifest manifest, EESpecProfile profile)
-
Field Details
-
logger
-
sm
-
-
Constructor Details
-
ManifestConverter
public ManifestConverter()Manifest converter constructor.
-
-
Method Details
-
accepts
Description copied from interface:Converter
Check if the file can be processed by this converter. -
convert
public boolean convert(String path, InputStream src, OutputStream dest, EESpecProfile profile) throws IOException Description copied from interface:Converter
Copies the source to the destination, converting it if necessary, according to the requirements of the given profile.- Specified by:
convert
in interfaceConverter
- Parameters:
path
- The path to the data being convertedsrc
- The source data to convertdest
- The destination to write the converted dataprofile
- The profile that defines the conversion required- Returns:
- true if the converter made a conversion to the file
- Throws:
IOException
- If the conversion fails
-
removeSignatures
-
isCryptoSignatureEntry
-
updateValues
-
updateValues
-
replaceVersion
-