Package com.google.gerrit.server.tools
Class ToolsCatalog.Entry
java.lang.Object
com.google.gerrit.server.tools.ToolsCatalog.Entry
- Enclosing class:
- ToolsCatalog
A file served out of the tools root directory.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getBytes()
Returns a copy of the file's contents.Returns collection of entries below this one, if this is a directory.int
getMode()
Returns the preferred UNIX file mode, e.g.getName()
Returns the name of the entry, within its parent directory.getPath()
Returns path of the entry, relative to the catalog root.getType()
-
Method Details
-
getType
-
getMode
public int getMode()Returns the preferred UNIX file mode, e.g.0755
. -
getPath
Returns path of the entry, relative to the catalog root. -
getName
Returns the name of the entry, within its parent directory. -
getChildren
Returns collection of entries below this one, if this is a directory. -
getBytes
public byte[] getBytes()Returns a copy of the file's contents.
-