@Singleton @Named public class DefaultFileProcessor extends Object implements org.eclipse.aether.spi.io.FileProcessor
Constructor and Description |
---|
DefaultFileProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
copy(File source,
File target) |
long |
copy(File source,
File target,
org.eclipse.aether.spi.io.FileProcessor.ProgressListener listener) |
boolean |
mkdirs(File directory)
Thread-safe variant of
File.mkdirs() . |
void |
move(File source,
File target) |
String |
readChecksum(File checksumFile) |
void |
write(File target,
InputStream source) |
void |
write(File target,
String data) |
void |
writeChecksum(File checksumFile,
String checksum) |
public DefaultFileProcessor()
public boolean mkdirs(File directory)
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.mkdirs
in interface org.eclipse.aether.spi.io.FileProcessor
directory
- The directory to create, may be null
.true
if and only if the directory was created, along with all necessary parent directories;
false
otherwisepublic void write(File target, String data) throws IOException
write
in interface org.eclipse.aether.spi.io.FileProcessor
IOException
public void write(File target, InputStream source) throws IOException
write
in interface org.eclipse.aether.spi.io.FileProcessor
IOException
public void copy(File source, File target) throws IOException
copy
in interface org.eclipse.aether.spi.io.FileProcessor
IOException
public long copy(File source, File target, org.eclipse.aether.spi.io.FileProcessor.ProgressListener listener) throws IOException
copy
in interface org.eclipse.aether.spi.io.FileProcessor
IOException
public void move(File source, File target) throws IOException
move
in interface org.eclipse.aether.spi.io.FileProcessor
IOException
public String readChecksum(File checksumFile) throws IOException
readChecksum
in interface org.eclipse.aether.spi.io.FileProcessor
IOException
public void writeChecksum(File checksumFile, String checksum) throws IOException
writeChecksum
in interface org.eclipse.aether.spi.io.FileProcessor
IOException
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.