/** * Compute the name of an object, without inserting it. * * @param type * type code of the object to store. * @param data * complete content of the object. * @return the name of the object. */ public ObjectId idFor(int type, byte[] data) { return idFor(type, data, 0, data.length); }
@Override public ObjectId idFor(int objectType, long length, InputStream in) throws IOException { return delegate().idFor(objectType, length, in); }
@Override public ObjectId idFor(int type, byte[] data) { return delegate().idFor(type, data); }
@Override public ObjectId idFor(TreeFormatter formatter) { return delegate().idFor(formatter); }
@Override public ObjectId idFor(int type, byte[] data, int off, int len) { return delegate().idFor(type, data, off, len); }
/** * Compute the ObjectId for this tree * * @param ins a {@link org.eclipse.jgit.lib.ObjectInserter} object. * @return ObjectId for this tree */ public ObjectId computeId(ObjectInserter ins) { if (buf != null) return ins.idFor(OBJ_TREE, buf, 0, ptr); final long len = overflowBuffer.length(); try { return ins.idFor(OBJ_TREE, len, overflowBuffer.openInputStream()); } catch (IOException e) { // this should never happen throw new RuntimeException(e); } }
b.append(cleanMessage); try (ObjectInserter f = new ObjectInserter.Formatter()) { return f.idFor(Constants.OBJ_COMMIT, Constants.encode(b.toString()));
/** * Compute the name of an object, without inserting it. * * @param type * type code of the object to store. * @param data * complete content of the object. * @return the name of the object. */ public ObjectId idFor(int type, byte[] data) { return idFor(type, data, 0, data.length); }
/** * Compute the name of an object, without inserting it. * * @param type * type code of the object to store. * @param data * complete content of the object. * @return the name of the object. */ public ObjectId idFor(int type, byte[] data) { return idFor(type, data, 0, data.length); }
@Override public ObjectId idFor(int objectType, long length, InputStream in) throws IOException { return delegate().idFor(objectType, length, in); }
public ObjectId idFor(int objectType, long length, InputStream in) throws IOException { return delegate().idFor(objectType, length, in); }
public ObjectId idFor(int type, byte[] data) { return delegate().idFor(type, data); }
@Override public ObjectId idFor(int type, byte[] data) { return delegate().idFor(type, data); }
@Override public ObjectId idFor(int type, byte[] data, int off, int len) { return delegate().idFor(type, data, off, len); }
@Override public ObjectId idFor(TreeFormatter formatter) { return delegate().idFor(formatter); }
public ObjectId idFor(int type, byte[] data, int off, int len) { return delegate().idFor(type, data, off, len); }
public ObjectId idFor(TreeFormatter formatter) { return delegate().idFor(formatter); }
/** * Compute the ObjectId for this tree * * @param ins * @return ObjectId for this tree */ public ObjectId computeId(ObjectInserter ins) { if (buf != null) return ins.idFor(OBJ_TREE, buf, 0, ptr); final long len = overflowBuffer.length(); try { return ins.idFor(OBJ_TREE, len, overflowBuffer.openInputStream()); } catch (IOException e) { // this should never happen throw new RuntimeException(e); } }
/** * Compute the ObjectId for this tree * * @param ins a {@link org.eclipse.jgit.lib.ObjectInserter} object. * @return ObjectId for this tree */ public ObjectId computeId(ObjectInserter ins) { if (buf != null) return ins.idFor(OBJ_TREE, buf, 0, ptr); final long len = overflowBuffer.length(); try { return ins.idFor(OBJ_TREE, len, overflowBuffer.openInputStream()); } catch (IOException e) { // this should never happen throw new RuntimeException(e); } }
b.append(cleanMessage); try (ObjectInserter f = new ObjectInserter.Formatter()) { return f.idFor(Constants.OBJ_COMMIT, Constants.encode(b.toString()));