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 class
ToolsCatalog.Entry.Type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytes()
List<ToolsCatalog.Entry>
getChildren()
int
getMode()
String
getName()
String
getPath()
ToolsCatalog.Entry.Type
getType()
-
-
-
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:
- 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.
-
-