List of usage examples for com.google.common.io BaseEncoding base64Url
public static BaseEncoding base64Url()
From source file:com.facebook.buck.features.apple.project.ProjectGenerator.java
private Path getFilenameToHeadersPath(TargetNode<? extends CxxLibraryDescription.CommonArg> targetNode, String suffix) {/*from ww w. ja v a 2 s .c o m*/ String hashedPath = BaseEncoding.base64Url().omitPadding() .encode(Hashing.sha1() .hashString(targetNode.getBuildTarget().getUnflavoredBuildTarget().getFullyQualifiedName(), Charsets.UTF_8) .asBytes()) .substring(0, 10); return Paths.get(hashedPath + suffix); }