- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {FileOutputStream f =
File file;new FileOutputStream(file)
String name;new FileOutputStream(name)
File file;new FileOutputStream(file, true)
- Smart code suggestions by Codota
}
/** * @param repo * @param chunk * @return the key */ public static ChunkKey create(RepositoryKey repo, ObjectId chunk) { return new ChunkKey(repo.asInt(), chunk); }
/** * @param repo * @param chunk * @return the key */ public static ChunkKey create(RepositoryKey repo, ObjectId chunk) { return new ChunkKey(repo.asInt(), chunk); }
/** * @param key * @param ptr * @param len * @return the key */ public static ChunkKey fromBytes(byte[] key, int ptr, int len) { if (len != KEYLEN) throw new IllegalArgumentException(MessageFormat.format( DhtText.get().invalidChunkKey, decode(key, ptr, ptr + len))); int repo = parse32(key, ptr); ObjectId chunk = ObjectId.fromString(key, ptr + 9); return new ChunkKey(repo, chunk); }
/** * @param key * @param ptr * @param len * @return the key */ public static ChunkKey fromBytes(byte[] key, int ptr, int len) { if (len != KEYLEN) throw new IllegalArgumentException(MessageFormat.format( DhtText.get().invalidChunkKey, decode(key, ptr, ptr + len))); int repo = parse32(key, ptr); ObjectId chunk = ObjectId.fromString(key, ptr + 9); return new ChunkKey(repo, chunk); }