Class DefaultFileProcessor

java.lang.Object
org.eclipse.aether.internal.impl.DefaultFileProcessor
All Implemented Interfaces:
org.eclipse.aether.spi.io.FileProcessor

@Singleton @Named public class DefaultFileProcessor extends Object implements org.eclipse.aether.spi.io.FileProcessor
A utility class helping with file-based operations.
  • Constructor Details

  • Method Details

    • mkdirs

      public boolean mkdirs(File directory)
      Thread-safe variant of File.mkdirs(). Creates the directory named by the given abstract pathname, including any necessary but nonexistent parent directories. Note that if this operation fails it may have succeeded in creating some of the necessary parent directories.
      Specified by:
      mkdirs in interface org.eclipse.aether.spi.io.FileProcessor
      Parameters:
      directory - The directory to create, may be null.
      Returns:
      true if and only if the directory was created, along with all necessary parent directories; false otherwise
    • write

      public void write(File target, 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