Class DefaultFileProcessor

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

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

  • Method Details

    • mkdirs

      public boolean mkdirs(File directory)
      Deprecated.
      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
      Deprecated.
      Specified by:
      write in interface org.eclipse.aether.spi.io.FileProcessor
      Throws:
      IOException
    • write

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

      public void copy(File source, File target) throws IOException
      Deprecated.
      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
      Deprecated.
      Specified by:
      copy in interface org.eclipse.aether.spi.io.FileProcessor
      Throws:
      IOException
    • move

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

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

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