Skip to content

Commit bb0d316

Browse files
Add content hasher utility
1 parent 5751011 commit bb0d316

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

core/api/core.api

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,14 @@ public class com/dropbox/core/util/CountingOutputStream : java/io/OutputStream {
827827
public fun write ([BII)V
828828
}
829829

830+
public final class com/dropbox/core/util/DropboxContentHasher {
831+
public static final field BLOCK_SIZE I
832+
public static fun hash (Ljava/io/InputStream;)[B
833+
public static fun hash ([B)[B
834+
public static fun hashHex (Ljava/io/InputStream;)Ljava/lang/String;
835+
public static fun hashHex ([B)Ljava/lang/String;
836+
}
837+
830838
public abstract class com/dropbox/core/util/DumpWriter {
831839
public fun <init> ()V
832840
public abstract fun f (Ljava/lang/String;)Lcom/dropbox/core/util/DumpWriter;

0 commit comments

Comments
 (0)