com.caucho.env.git
Class GitTree

java.lang.Object
  extended by com.caucho.env.git.GitTree

public class GitTree
extends java.lang.Object

Tree structure


Nested Class Summary
 class GitTree.Entry
           
 
Constructor Summary
GitTree()
           
 
Method Summary
 void addBlob(java.lang.String name, int mode, java.lang.String sha1)
           
 void addDir(java.lang.String name, java.lang.String sha1)
           
 void addEntry(java.lang.String name, int mode, java.lang.String sha1)
           
 java.util.Collection<GitTree.Entry> entries()
           
 java.lang.String getHash(java.lang.String name)
           
 java.util.HashMap<java.lang.String,GitTree.Entry> getMap()
           
 void toData(java.io.OutputStream out)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GitTree

public GitTree()
Method Detail

addEntry

public void addEntry(java.lang.String name,
                     int mode,
                     java.lang.String sha1)

getMap

public java.util.HashMap<java.lang.String,GitTree.Entry> getMap()

getHash

public java.lang.String getHash(java.lang.String name)

addBlob

public void addBlob(java.lang.String name,
                    int mode,
                    java.lang.String sha1)

addDir

public void addDir(java.lang.String name,
                   java.lang.String sha1)

entries

public java.util.Collection<GitTree.Entry> entries()

toData

public void toData(java.io.OutputStream out)
            throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object