public static Method parseMethodFor ( Class < Message > klass ) { try { return klass . getMethod ( "parseDelimitedFrom" , new Class [ ] { InputStream . class } ) ; } catch ( SecurityException e ) { throw new RuntimeException ( e ) ; } catch ( NoSuchMethodException e ) { throw new RuntimeException ( e ) ; } }
Parse the method for a message