Package com.google.gerrit.server.tools
Class ToolsCatalog.Entry
- java.lang.Object
-
- com.google.gerrit.server.tools.ToolsCatalog.Entry
-
- Enclosing class:
- ToolsCatalog
public static class ToolsCatalog.Entry extends Object
A file served out of the tools root directory.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classToolsCatalog.Entry.Type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytes()Returns a copy of the file's contents.List<ToolsCatalog.Entry>getChildren()Returns collection of entries below this one, if this is a directory.intgetMode()Returns the preferred UNIX file mode, e.g.StringgetName()Returns the name of the entry, within its parent directory.StringgetPath()Returns path of the entry, relative to the catalog root.ToolsCatalog.Entry.TypegetType()
-
-
-
Method Detail
-
getType
public ToolsCatalog.Entry.Type getType()
-
getMode
public int getMode()
Returns the preferred UNIX file mode, e.g.0755.
-
getPath
public String getPath()
Returns path of the entry, relative to the catalog root.
-
getName
public String getName()
Returns the name of the entry, within its parent directory.
-
getChildren
public List<ToolsCatalog.Entry> 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.
-
-