public class TestFileProcessor extends Object implements FileProcessor
FileProcessor.ProgressListener
Constructor and Description |
---|
TestFileProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
copy(File source,
File target) |
long |
copy(File source,
File target,
FileProcessor.ProgressListener listener) |
boolean |
mkdirs(File directory) |
void |
move(File source,
File target) |
void |
write(File target,
InputStream source) |
void |
write(File file,
String data) |
public TestFileProcessor()
public boolean mkdirs(File directory)
mkdirs
in interface FileProcessor
public void write(File file, String data) throws IOException
write
in interface FileProcessor
IOException
public void write(File target, InputStream source) throws IOException
write
in interface FileProcessor
IOException
public void copy(File source, File target) throws IOException
copy
in interface FileProcessor
IOException
public long copy(File source, File target, FileProcessor.ProgressListener listener) throws IOException
copy
in interface FileProcessor
IOException
public void move(File source, File target) throws IOException
move
in interface FileProcessor
IOException
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.