Class DefaultChecksumProcessor

  • All Implemented Interfaces:
    org.eclipse.aether.spi.io.ChecksumProcessor

    @Singleton
    @Named
    public class DefaultChecksumProcessor
    extends java.lang.Object
    implements org.eclipse.aether.spi.io.ChecksumProcessor
    A utility class helping with file-based operations.
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultChecksumProcessor​(org.eclipse.aether.spi.io.PathProcessor pathProcessor)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String readChecksum​(java.nio.file.Path checksumPath)  
      void writeChecksum​(java.nio.file.Path target, java.lang.String checksum)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultChecksumProcessor

        @Inject
        public DefaultChecksumProcessor​(org.eclipse.aether.spi.io.PathProcessor pathProcessor)
    • Method Detail

      • readChecksum

        public java.lang.String readChecksum​(java.nio.file.Path checksumPath)
                                      throws java.io.IOException
        Specified by:
        readChecksum in interface org.eclipse.aether.spi.io.ChecksumProcessor
        Throws:
        java.io.IOException
      • writeChecksum

        public void writeChecksum​(java.nio.file.Path target,
                                  java.lang.String checksum)
                           throws java.io.IOException
        Specified by:
        writeChecksum in interface org.eclipse.aether.spi.io.ChecksumProcessor
        Throws:
        java.io.IOException