Package org.apache.maven.internal.impl
Class DefaultChecksumAlgorithmService
java.lang.Object
org.apache.maven.internal.impl.DefaultChecksumAlgorithmService
- All Implemented Interfaces:
Service
,ChecksumAlgorithmService
@Named
@Singleton
public class DefaultChecksumAlgorithmService
extends Object
implements ChecksumAlgorithmService
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.api.services.ChecksumAlgorithmService
ChecksumAlgorithmService.ChecksumAlgorithm, ChecksumAlgorithmService.ChecksumCalculator
-
Constructor Summary
ConstructorDescriptionDefaultChecksumAlgorithmService
(org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactorySelector checksumAlgorithmFactorySelector) -
Method Summary
Modifier and TypeMethodDescriptioncalculate
(byte[] data, Collection<ChecksumAlgorithmService.ChecksumAlgorithm> algorithms) calculate
(InputStream stream, Collection<ChecksumAlgorithmService.ChecksumAlgorithm> algorithms) calculate
(ByteBuffer data, Collection<ChecksumAlgorithmService.ChecksumAlgorithm> algorithms) calculate
(Path file, Collection<ChecksumAlgorithmService.ChecksumAlgorithm> algorithms) select
(Collection<String> algorithmNames)
-
Constructor Details
-
DefaultChecksumAlgorithmService
@Inject public DefaultChecksumAlgorithmService(org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactorySelector checksumAlgorithmFactorySelector)
-
-
Method Details
-
getChecksumAlgorithmNames
- Specified by:
getChecksumAlgorithmNames
in interfaceChecksumAlgorithmService
-
select
- Specified by:
select
in interfaceChecksumAlgorithmService
-
select
public Collection<ChecksumAlgorithmService.ChecksumAlgorithm> select(Collection<String> algorithmNames) - Specified by:
select
in interfaceChecksumAlgorithmService
-
calculate
public Map<ChecksumAlgorithmService.ChecksumAlgorithm,String> calculate(byte[] data, Collection<ChecksumAlgorithmService.ChecksumAlgorithm> algorithms) - Specified by:
calculate
in interfaceChecksumAlgorithmService
-
calculate
public Map<ChecksumAlgorithmService.ChecksumAlgorithm,String> calculate(ByteBuffer data, Collection<ChecksumAlgorithmService.ChecksumAlgorithm> algorithms) - Specified by:
calculate
in interfaceChecksumAlgorithmService
-
calculate
public Map<ChecksumAlgorithmService.ChecksumAlgorithm,String> calculate(Path file, Collection<ChecksumAlgorithmService.ChecksumAlgorithm> algorithms) throws IOException - Specified by:
calculate
in interfaceChecksumAlgorithmService
- Throws:
IOException
-
calculate
public Map<ChecksumAlgorithmService.ChecksumAlgorithm,String> calculate(InputStream stream, Collection<ChecksumAlgorithmService.ChecksumAlgorithm> algorithms) throws IOException - Specified by:
calculate
in interfaceChecksumAlgorithmService
- Throws:
IOException
-