Class TestFileProcessor

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

    public class TestFileProcessor
    extends java.lang.Object
    implements org.eclipse.aether.spi.io.FileProcessor
    A simple file processor implementation to help satisfy component requirements during tests. It implements the deprecated FileProcessor SPI on purpose, referenced by its fully qualified name as javac reports an import of a deprecated type with --release 8.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.aether.spi.io.FileProcessor

        org.eclipse.aether.spi.io.FileProcessor.ProgressListener
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void copy​(java.io.File source, java.io.File target)  
      long copy​(java.io.File source, java.io.File target, org.eclipse.aether.spi.io.FileProcessor.ProgressListener listener)  
      boolean mkdirs​(java.io.File directory)  
      void move​(java.io.File source, java.io.File target)  
      java.lang.String readChecksum​(java.io.File checksumFile)  
      void write​(java.io.File target, java.io.InputStream source)  
      void write​(java.io.File file, java.lang.String data)  
      void writeChecksum​(java.io.File checksumFile, java.lang.String checksum)  
      • Methods inherited from class java.lang.Object

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

      • mkdirs

        public boolean mkdirs​(java.io.File directory)
        Specified by:
        mkdirs in interface org.eclipse.aether.spi.io.FileProcessor
      • write

        public void write​(java.io.File file,
                          java.lang.String data)
                   throws java.io.IOException
        Specified by:
        write in interface org.eclipse.aether.spi.io.FileProcessor
        Throws:
        java.io.IOException
      • write

        public void write​(java.io.File target,
                          java.io.InputStream source)
                   throws java.io.IOException
        Specified by:
        write in interface org.eclipse.aether.spi.io.FileProcessor
        Throws:
        java.io.IOException
      • copy

        public void copy​(java.io.File source,
                         java.io.File target)
                  throws java.io.IOException
        Specified by:
        copy in interface org.eclipse.aether.spi.io.FileProcessor
        Throws:
        java.io.IOException
      • copy

        public long copy​(java.io.File source,
                         java.io.File target,
                         org.eclipse.aether.spi.io.FileProcessor.ProgressListener listener)
                  throws java.io.IOException
        Specified by:
        copy in interface org.eclipse.aether.spi.io.FileProcessor
        Throws:
        java.io.IOException
      • move

        public void move​(java.io.File source,
                         java.io.File target)
                  throws java.io.IOException
        Specified by:
        move in interface org.eclipse.aether.spi.io.FileProcessor
        Throws:
        java.io.IOException
      • readChecksum

        public java.lang.String readChecksum​(java.io.File checksumFile)
                                      throws java.io.IOException
        Specified by:
        readChecksum in interface org.eclipse.aether.spi.io.FileProcessor
        Throws:
        java.io.IOException
      • writeChecksum

        public void writeChecksum​(java.io.File checksumFile,
                                  java.lang.String checksum)
                           throws java.io.IOException
        Specified by:
        writeChecksum in interface org.eclipse.aether.spi.io.FileProcessor
        Throws:
        java.io.IOException