public interface FileService
| Modifier and Type | Method and Description |
|---|---|
void |
copy(org.uberfire.java.nio.file.Path source,
org.uberfire.java.nio.file.Path dest) |
org.uberfire.java.nio.file.Path |
createDirectory(org.uberfire.java.nio.file.Path path) |
org.uberfire.java.nio.file.Path |
createFile(org.uberfire.java.nio.file.Path path) |
boolean |
deleteIfExists(org.uberfire.java.nio.file.Path path) |
boolean |
exists(org.uberfire.java.nio.file.Path file) |
void |
fetchChanges() |
org.uberfire.java.nio.file.Path |
getPath(String path) |
void |
init() |
boolean |
isActive() |
Iterable<org.uberfire.java.nio.file.Path> |
listDirectories(org.uberfire.java.nio.file.Path path) |
byte[] |
loadFile(org.uberfire.java.nio.file.Path file) |
Iterable<org.uberfire.java.nio.file.Path> |
loadFilesByType(org.uberfire.java.nio.file.Path path,
String fileType) |
void |
move(org.uberfire.java.nio.file.Path source,
org.uberfire.java.nio.file.Path dest) |
OutputStream |
openFile(org.uberfire.java.nio.file.Path path) |
void init()
throws FileException
FileExceptionvoid fetchChanges()
byte[] loadFile(org.uberfire.java.nio.file.Path file)
throws FileException
FileExceptionIterable<org.uberfire.java.nio.file.Path> listDirectories(org.uberfire.java.nio.file.Path path)
Iterable<org.uberfire.java.nio.file.Path> loadFilesByType(org.uberfire.java.nio.file.Path path, String fileType) throws FileException
FileExceptionboolean exists(org.uberfire.java.nio.file.Path file)
void move(org.uberfire.java.nio.file.Path source,
org.uberfire.java.nio.file.Path dest)
void copy(org.uberfire.java.nio.file.Path source,
org.uberfire.java.nio.file.Path dest)
org.uberfire.java.nio.file.Path createDirectory(org.uberfire.java.nio.file.Path path)
org.uberfire.java.nio.file.Path createFile(org.uberfire.java.nio.file.Path path)
boolean deleteIfExists(org.uberfire.java.nio.file.Path path)
OutputStream openFile(org.uberfire.java.nio.file.Path path)
org.uberfire.java.nio.file.Path getPath(String path)
boolean isActive()
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.