public static void getClassDigest ( Class < ? > cl , MessageDigest digest ) { DigestOutputStream out = new DigestOutputStream ( NullOutputStream . getInstance ( ) , digest ) ; try { writeClassToStream ( cl , out ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; throw new UnexpectedException ( e ) ; } }
Computes a digest from a class bytecode .