@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) |
void |
write(File target,
InputStream source) |
void |
write(File target,
String data) |
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
Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.