MCPcopy Create free account
hub / github.com/dreamhead/moco / file

Method file

moco-core/src/main/java/com/github/dreamhead/moco/Moco.java:448–450  ·  view source on GitHub ↗
(final String filename)

Source from the content-addressed store, hash-verified

446 }
447
448 public static ContentResource file(final String filename) {
449 return file(text(checkNotNullOrEmpty(filename, "Filename should not be null")));
450 }
451
452 public static ContentResource file(final Resource filename) {
453 return ApiUtils.file(checkNotNull(filename, "Filename should not be null"), null);

Calls 3

textMethod · 0.95
fileMethod · 0.95
checkNotNullOrEmptyMethod · 0.80