|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.util.browser.FileSystemBrowser.FileElement
public static class FileSystemBrowser.FileElement
| Constructor Summary | |
|---|---|
FileSystemBrowser.FileElement(java.io.File file)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Iterable<Element> |
getChildren()
Returns the ordered list of element's children. |
java.io.File |
getFile()
|
java.lang.String |
getFullName()
Returns the unique full name of the element (from the root). |
java.io.InputStream |
getInputStream()
Returns the input stream of the element content. |
java.lang.String |
getName()
Returns the element's name. |
long |
getSize()
Returns the size of the element content. |
int |
hashCode()
|
boolean |
isContentAvailable()
Returns whether the content is available for the element. |
boolean |
isLeaf()
Returns whether the element is a leaf, i.e. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileSystemBrowser.FileElement(@NotNull
java.io.File file)
| Method Detail |
|---|
@NotNull public java.lang.String getName()
Element
getName in interface Element@NotNull public java.lang.String getFullName()
Element
getFullName in interface Elementpublic boolean isLeaf()
Element
isLeaf in interface Elementpublic 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 Element@NotNull public java.io.File getFile()
public boolean isContentAvailable()
ElementgetInputStream() method will result in exception.
isContentAvailable in interface Element
@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 Elementjava.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 Elementjava.lang.IllegalStateException - if the content size is not availablepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||