|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectbr.com.objectos.git.MutableBlob
public final class MutableBlob
A class for creating an arbitrary blob object suitable for writing to a
repository. It can be written to a repository directly or it can be written
indirectly as an entry in a MutableTree instance.
| Constructor Summary | |
|---|---|
MutableBlob(String name)
Creates a new MutableBlob having the specified name. |
|
| Method Summary | |
|---|---|
void |
formatToString(StringBuilder sb,
int depth)
|
EntryMode |
getMode()
Returns the file mode of this tree entry. |
String |
getName()
Returns the name of this tree entry. |
boolean |
hasName(String name)
Returns true if this tree entry has the specified name,
false otherwise. |
void |
setContents(Blob value)
Sets the contents of this blob to be the same as the specified blob. |
void |
setContents(byte[] value)
Sets the contents of this blob to the specified byte array. |
void |
setExecutable()
Sets this blob's executable bit. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MutableBlob(String name)
MutableBlob having the specified name.
name - the name of this blob when serving as a tree entry
IllegalArgumentException - if name is an empty string| Method Detail |
|---|
public final void formatToString(StringBuilder sb,
int depth)
public final EntryMode getMode()
public final String getName()
public final void setContents(Blob value)
value - the new contents of this blobpublic final void setContents(byte[] value)
value - the new contents of this blobpublic final void setExecutable()
public final boolean hasName(String name)
true if this tree entry has the specified name,
false otherwise.
name - the value to test this entry's name against
true if this tree entry has the specified name,
false otherwisepublic final String toString()
toString in class Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||