@Named @Singleton public class LockingFileProcessor extends Object implements org.eclipse.aether.spi.io.FileProcessor
FileProcessor
implementation that delegates all important operations to DefaultFileLockManager
.Constructor and Description |
---|
LockingFileProcessor(io.takari.filemanager.FileManager fileManager) |
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) |
void |
move(File source,
File target) |
void |
write(File target,
InputStream source) |
void |
write(File target,
String data) |
@Inject public LockingFileProcessor(io.takari.filemanager.FileManager fileManager)
public boolean mkdirs(File directory)
mkdirs
in interface org.eclipse.aether.spi.io.FileProcessor
public 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 move(File source, File target) throws IOException
move
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
Copyright © 2010–2014. All rights reserved.