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.
  • Method Details

    • 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.