|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.util.browser.FileSystemBrowser.FileElement
jetbrains.buildServer.util.browser.FileSystemBrowser.DirectoryElement
public static class FileSystemBrowser.DirectoryElement
| Constructor Summary | |
|---|---|
FileSystemBrowser.DirectoryElement(java.io.File file)
|
|
| Method Summary | |
|---|---|
java.lang.Iterable<Element> |
getChildren()
Returns the ordered list of element's children. |
java.io.InputStream |
getInputStream()
Returns the input stream of the element content. |
long |
getSize()
Returns the size of the element content. |
boolean |
isContentAvailable()
Returns whether the content is available for the element. |
boolean |
isLeaf()
Returns whether the element is a leaf, i.e. |
| Methods inherited from class jetbrains.buildServer.util.browser.FileSystemBrowser.FileElement |
|---|
equals, getFile, getFullName, getName, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileSystemBrowser.DirectoryElement(@NotNull
java.io.File file)
| Method Detail |
|---|
public boolean isLeaf()
Element
isLeaf in interface ElementisLeaf in class FileSystemBrowser.FileElementpublic java.lang.Iterable<Element> getChildren()
Elementnull for a leaf element, and a
not null instance for other elements.
List can be empty. All children's names are different.
getChildren in interface ElementgetChildren in class FileSystemBrowser.FileElementpublic boolean isContentAvailable()
ElementgetInputStream() method will result in exception.
isContentAvailable in interface ElementisContentAvailable in class FileSystemBrowser.FileElement
@NotNull
public java.io.InputStream getInputStream()
throws java.lang.IllegalStateException,
java.io.IOException
Element
If the content is not available for the element (see Element.isContentAvailable()), an exception is thrown.
getInputStream in interface ElementgetInputStream in class FileSystemBrowser.FileElementjava.lang.IllegalStateException - if the content is not available
java.io.IOException - if the input cannot be provided due to I/O error
public long getSize()
throws java.lang.IllegalStateException
Element
If the content is not available for the element (see Element.isContentAvailable()), an exception may be thrown,
or due to performance reasons a negative value may be returned.
Though some implementations can provide the content size, while the content is not available.
getSize in interface ElementgetSize in class FileSystemBrowser.FileElementjava.lang.IllegalStateException - if the content size is not available
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||