br.com.objectos.git
public final class MutableBlob extends Object
MutableTree instance.| Constructor and Description |
|---|
MutableBlob(String name)
Creates a new
MutableBlob having the specified name. |
| Modifier and Type | Method and Description |
|---|---|
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() |
public MutableBlob(String name)
MutableBlob having the specified name.name - the name of this blob when serving as a tree entryIllegalArgumentException - if name is an empty stringpublic 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 againsttrue if this tree entry has the specified name,
false otherwiseCopyright © 2020–2022 Objectos Software LTDA. All rights reserved.