private ChunkFormatter newChunk() { ChunkFormatter fmt; fmt = new ChunkFormatter(repo, options); fmt.setSource(GitStore.ChunkInfo.Source.INSERT); return fmt; }
private ChunkFormatter newChunk() { ChunkFormatter fmt; fmt = new ChunkFormatter(repo, options); fmt.setSource(GitStore.ChunkInfo.Source.INSERT); return fmt; }
private ChunkFormatter openChunk(int typeCode) throws DhtException { if (typeCode == 0) throw new DhtException("Invalid internal typeCode 0"); ChunkFormatter w = openChunks[typeCode]; if (w == null) { w = new ChunkFormatter(repo, options); w.setSource(GitStore.ChunkInfo.Source.RECEIVE); w.setObjectType(typeCode); openChunks[typeCode] = w; } return w; }
private ChunkFormatter openChunk(int typeCode) throws DhtException { if (typeCode == 0) throw new DhtException("Invalid internal typeCode 0"); ChunkFormatter w = openChunks[typeCode]; if (w == null) { w = new ChunkFormatter(repo, options); w.setSource(GitStore.ChunkInfo.Source.RECEIVE); w.setObjectType(typeCode); openChunks[typeCode] = w; } return w; }