protected ClassConfigData processClassConfiguration ( final InputStream inputStream ) throws IOException { if ( introspectAnnotations == false ) { return new ClassConfigData ( inputStream ) ; } ClassReader cr = new ClassReader ( inputStream ) ; ClassWriter cw = new ClassWriter ( cr , 0 ) ; // Don't compute anything - read only mode TraceConfigClassVisitor cv = new TraceConfigClassVisitor ( cw ) ; cr . accept ( cv , 0 ) ; ClassInfo classInfo = cv . getClassInfo ( ) ; InputStream classInputStream = new ByteArrayInputStream ( cw . toByteArray ( ) ) ; return new ClassConfigData ( classInputStream , classInfo ) ; }
Introspect configuration information from the class in the provided InputStream .