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);
    }
  }
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);
    }
  }
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
@param klass the class containing the message
@return the parsed method
Parse the method for a message