Class FileSystemBrowser
- java.lang.Object
-
- jetbrains.buildServer.util.browser.FileSystemBrowser
-
- All Implemented Interfaces:
Browser
public class FileSystemBrowser extends 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 classFileSystemBrowser.DirectoryElementstatic classFileSystemBrowser.FileElement
-
Constructor Summary
Constructors Constructor Description FileSystemBrowser(File root)FileSystemBrowser(String rootPath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intfileReadBufferSize(File file)BehaviourgetBehaviour()Returns the browser behaviour options.ElementgetElement(String path)ElementgetRoot()Returns the root element.
-
-
-
Method Detail
-
getRoot
@NotNull public Element getRoot()
Description copied from interface:BrowserReturns the root element.
-
getElement
@Nullable public Element getElement(@NotNull String path)
- Specified by:
getElementin 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:BrowserReturns the browser behaviour options.For most implementations
Behaviour.DEFAULT_BEHAVIOURis returned.- Specified by:
getBehaviourin interfaceBrowser- Returns:
- browser behaviour
-
fileReadBufferSize
public static int fileReadBufferSize(@NotNull File file)
-
-