public interface FileSystemAbstraction
| Modifier and Type | Interface and Description |
|---|---|
static interface |
FileSystemAbstraction.ThirdPartyFileSystem |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFile(File from,
File to) |
void |
copyRecursively(File fromDirectory,
File toDirectory) |
StoreChannel |
create(File fileName) |
boolean |
deleteFile(File fileName) |
void |
deleteRecursively(File directory) |
boolean |
fileExists(File fileName) |
long |
getFileSize(File fileName) |
<K extends FileSystemAbstraction.ThirdPartyFileSystem> |
getOrCreateThirdPartyFileSystem(Class<K> clazz,
org.neo4j.function.Function<Class<K>,K> creator) |
boolean |
isDirectory(File file) |
File[] |
listFiles(File directory) |
File[] |
listFiles(File directory,
FilenameFilter filter) |
boolean |
mkdir(File fileName) |
void |
mkdirs(File fileName) |
void |
moveToDirectory(File file,
File toDirectory) |
StoreChannel |
open(File fileName,
String mode) |
InputStream |
openAsInputStream(File fileName) |
OutputStream |
openAsOutputStream(File fileName,
boolean append) |
Reader |
openAsReader(File fileName,
String encoding) |
Writer |
openAsWriter(File fileName,
String encoding,
boolean append) |
boolean |
renameFile(File from,
File to) |
void |
truncate(File path,
long size) |
FileLock |
tryLock(File fileName,
StoreChannel channel) |
StoreChannel open(File fileName, String mode) throws IOException
IOExceptionOutputStream openAsOutputStream(File fileName, boolean append) throws IOException
IOExceptionInputStream openAsInputStream(File fileName) throws IOException
IOExceptionReader openAsReader(File fileName, String encoding) throws IOException
IOExceptionWriter openAsWriter(File fileName, String encoding, boolean append) throws IOException
IOExceptionFileLock tryLock(File fileName, StoreChannel channel) throws IOException
IOExceptionStoreChannel create(File fileName) throws IOException
IOExceptionboolean fileExists(File fileName)
boolean mkdir(File fileName)
void mkdirs(File fileName) throws IOException
IOExceptionlong getFileSize(File fileName)
boolean deleteFile(File fileName)
void deleteRecursively(File directory) throws IOException
IOExceptionboolean renameFile(File from, File to) throws IOException
IOExceptionFile[] listFiles(File directory, FilenameFilter filter)
boolean isDirectory(File file)
void moveToDirectory(File file, File toDirectory) throws IOException
IOExceptionvoid copyFile(File from, File to) throws IOException
IOExceptionvoid copyRecursively(File fromDirectory, File toDirectory) throws IOException
IOException<K extends FileSystemAbstraction.ThirdPartyFileSystem> K getOrCreateThirdPartyFileSystem(Class<K> clazz, org.neo4j.function.Function<Class<K>,K> creator)
void truncate(File path, long size) throws IOException
IOExceptionCopyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.