Class TestFileProcessor

java.lang.Object
org.eclipse.aether.internal.test.util.TestFileProcessor
All Implemented Interfaces:
org.eclipse.aether.spi.io.FileProcessor

public class TestFileProcessor extends 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.
  • Constructor Details

  • Method Details

    • mkdirs

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

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

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

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

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

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

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

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