|
|
@ -288,8 +288,8 @@ public class CommitBuilder { |
|
|
|
* the encoding specified by {@link #getEncoding()} is not |
|
|
|
* the encoding specified by {@link #getEncoding()} is not |
|
|
|
* supported by this Java runtime. |
|
|
|
* supported by this Java runtime. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public byte[] format() throws UnsupportedEncodingException { |
|
|
|
public byte[] build() throws UnsupportedEncodingException { |
|
|
|
return format(new ObjectInserter.Formatter()); |
|
|
|
return build(new ObjectInserter.Formatter()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -308,7 +308,7 @@ public class CommitBuilder { |
|
|
|
* the encoding specified by {@link #getEncoding()} is not |
|
|
|
* the encoding specified by {@link #getEncoding()} is not |
|
|
|
* supported by this Java runtime. |
|
|
|
* supported by this Java runtime. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public byte[] format(ObjectInserter oi) throws UnsupportedEncodingException { |
|
|
|
public byte[] build(ObjectInserter oi) throws UnsupportedEncodingException { |
|
|
|
ByteArrayOutputStream os = new ByteArrayOutputStream(); |
|
|
|
ByteArrayOutputStream os = new ByteArrayOutputStream(); |
|
|
|
OutputStreamWriter w = new OutputStreamWriter(os, getEncoding()); |
|
|
|
OutputStreamWriter w = new OutputStreamWriter(os, getEncoding()); |
|
|
|
try { |
|
|
|
try { |
|
|
|