Class FileSystemImpl
java.lang.Object
com.zfabrik.components.provider.fs.FileSystemImpl
- All Implemented Interfaces:
IAbstractFileSystem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check whether a file exists.getInputStream
(String name) Retrieve the named resource as InputStreamgetRoot()
Returns the root folderIterate over files under another file, i.e.list files under another file, i.e.toString()
-
Constructor Details
-
FileSystemImpl
-
-
Method Details
-
getRoot
Description copied from interface:IAbstractFileSystem
Returns the root folder- Specified by:
getRoot
in interfaceIAbstractFileSystem
- Returns:
- Root folder
-
exists
Description copied from interface:IAbstractFileSystem
Check whether a file exists.- Specified by:
exists
in interfaceIAbstractFileSystem
- Returns:
true
if the named file exists,false
otherwise.- Throws:
IOException
-
getInputStream
Description copied from interface:IAbstractFileSystem
Retrieve the named resource as InputStream- Specified by:
getInputStream
in interfaceIAbstractFileSystem
- Throws:
IOException
-
list
Description copied from interface:IAbstractFileSystem
list files under another file, i.e. a folder. The first result element is the named file as specified by the signature.- Specified by:
list
in interfaceIAbstractFileSystem
- Throws:
IOException
-
iterate
Description copied from interface:IAbstractFileSystem
Iterate over files under another file, i.e. a folder. The first result element is the named file as specified by the signature. When working over large sets of files this method should realize the advantage that it does not require to read everything in advance, saving memory and time.- Specified by:
iterate
in interfaceIAbstractFileSystem
- Throws:
IOException
-
toString
-