public interface FileService
Modifier and Type | Method and Description |
---|---|
InputStream |
concat(List<String> relativePaths,
boolean ignoreNonExistant) |
void |
delete(String relativePath)
Deletes the file or directory ( recursively )
|
boolean |
exists(String relativePath)
Returns true if the file exists.
|
FileData |
getFileData(String relativePath) |
long |
getLength(String relativePath) |
PathInfo |
getRoot()
Returns the root directory supported by this file service
|
boolean |
isDirectory(String relativePath)
Returns true if the file exists and is a directory.
|
boolean |
isFile(String relativePath)
Returns true if the file exists and is a file ( not a directory ).
|
List<FileData> |
listPathData(String relativePath)
Lists the files and subdirectories under this directory
|
List<String> |
listPaths(String relativePath)
Lists the files and subdirectories under this directory
|
InputStream |
openInputStream(String relativePath)
Opens the file for reading.
|
OutputStream |
openOutputStream(String relativePath,
WriteMode mode)
Opens the file for writing.
|
boolean isFile(String relativePath)
relativePath
- the file pathboolean isDirectory(String relativePath)
relativePath
- the file pathboolean exists(String relativePath)
relativePath
- the file pathInputStream openInputStream(String relativePath)
relativePath
- the file pathRuntimeException
- if the file doesn't exist or is a directoryOutputStream openOutputStream(String relativePath, WriteMode mode)
relativePath
- the file pathmode
- the write modeRuntimeException
- if the file is a directoryPathInfo getRoot()
List<String> listPaths(String relativePath)
relativePath
- the file pathRuntimeException
- if the file doesn't exist or is not a directoryList<FileData> listPathData(String relativePath)
relativePath
- the file pathRuntimeException
- if the file doesn't exist or is not a directoryvoid delete(String relativePath)
relativePath
- the file pathRuntimeException
- if the file doesn't exist or is a directorylong getLength(String relativePath)
InputStream concat(List<String> relativePaths, boolean ignoreNonExistant)
Copyright © 2015 Actian Corporation. All Rights Reserved.