Class FileSystemBrowser
- java.lang.Object
-
- jetbrains.buildServer.util.browser.FileSystemBrowser
-
- All Implemented Interfaces:
Browser
public class FileSystemBrowser extends java.lang.Object implements Browser
A simple file system implementation of a browser. Files are terminal elements and directories are non-terminal ones. Directories return first inner directories, then files (both in lexicographical order) as children.- Since:
- 6.0
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileSystemBrowser.DirectoryElement
static class
FileSystemBrowser.FileElement
-
Constructor Summary
Constructors Constructor Description FileSystemBrowser(java.io.File root)
FileSystemBrowser(java.lang.String rootPath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
fileReadBufferSize(java.io.File file)
Behaviour
getBehaviour()
Returns the browser behaviour options.Element
getElement(java.lang.String path)
Element
getRoot()
Returns the root element.
-
-
-
Method Detail
-
getRoot
@NotNull public Element getRoot()
Description copied from interface:Browser
Returns the root element.
-
getElement
@Nullable public Element getElement(@NotNull java.lang.String path)
- Specified by:
getElement
in interfaceBrowser
- Parameters:
path
- path to some element- Returns:
- element for specified path or null if element does not exist
-
getBehaviour
@NotNull public Behaviour getBehaviour()
Description copied from interface:Browser
Returns the browser behaviour options.For most implementations
Behaviour.DEFAULT_BEHAVIOUR
is returned.- Specified by:
getBehaviour
in interfaceBrowser
- Returns:
- browser behaviour
-
fileReadBufferSize
public static int fileReadBufferSize(@NotNull java.io.File file)
-
-