Package jetbrains.mps.generator
Class ModelDigestUtil
- java.lang.Object
 - 
- jetbrains.mps.generator.ModelDigestUtil
 
 
- 
public class ModelDigestUtil extends Object
Evgeny Gryaznov, Sep 2, 2010 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModelDigestUtil.DigestBuilderOutputStream 
- 
Constructor Summary
Constructors Constructor Description ModelDigestUtil() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModelDigestUtil.DigestBuilderOutputStreamcreateDigestBuilderOutputStream()static Stringhash(StreamDataSource source, boolean isText)Ignores newlines when isText == true.static StringhashBytes(InputStream stream)static StringhashText(Reader r)static StringhashText(String content)Ignores newlines. 
 - 
 
- 
- 
Method Detail
- 
hash
@Contract("null, _ -> null") public static String hash(@Nullable StreamDataSource source, boolean isText)
Ignores newlines when isText == true. 
- 
hashBytes
@NotNull public static String hashBytes(InputStream stream) throws IOException
- Throws:
 IOException
 
- 
hashText
@NotNull public static String hashText(@NotNull Reader r) throws IOException
- Throws:
 IOException
 
- 
createDigestBuilderOutputStream
public static ModelDigestUtil.DigestBuilderOutputStream createDigestBuilderOutputStream()
 
 - 
 
 -