mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/utils/ReflectionsUtil.java
public static Message invokeProtobuffParseFrom(final Class<?> protoClass, final ByteString byteString) 
            throws ReflectionsUtilException
    {
        final Method parseFromMethod;
        try
        {
            parseFromMethod = protoClass.getMethod("parseFrom", ByteString.class);
        }
        catch (final SecurityException exception)
        {
            throw new ReflectionsUtilException(exception);
        }
        catch (final NoSuchMethodException exception)
        {
            throw new ReflectionsUtilException(exception);
        }
        try
        {
            return (Message)parseFromMethod.invoke(null, byteString);
        }
        catch (final IllegalArgumentException exception)
        {
            throw new ReflectionsUtilException(exception);
        }
        catch (final IllegalAccessException exception)
        {
            throw new ReflectionsUtilException(exception);
        }
        catch (final InvocationTargetException exception)
        {
            throw new ReflectionsUtilException(exception);
        }
    }
/**
     * Method used to invoke the parseFrom method for a protocol buffer class. This is used to convert a byte string 
     * into the appropriate message object.
     * 
     * @param protoClass
     *      The protocol buffer class containing the parseFrom method to be invoked.
     * @param byteString
     *      The {@link ByteString} to be parsed into a message.
     * @return
     *      The parse {@link Message}.
     * @throws ReflectionsUtilException
     *      Thrown if an error occurs while using reflections to invoke the pareFrom method.
     */
Method used to invoke the parseFrom method for a protocol buffer class. This is used to convert a byte string
into the appropriate message object.

@param protoClass
The protocol buffer class containing the parseFrom method to be invoked.
@param byteString
The  ByteString to be parsed into a message.
@return
The parse  Message.
@throws ReflectionsUtilException
Thrown if an error occurs while using reflections to invoke the pareFrom method.
Method used to invoke the parseFrom method for a protocol buffer class . This is used to convert a byte string into the appropriate message object . @param protoClass The protocol buffer class containing the parseFrom method to be invoked . @param byteString The ByteString to be parsed into a message . @return The parse Message . @throws ReflectionsUtilException Thrown if an error occurs while using reflections to invoke the pareFrom method .
public static Message invokeProtobuffParseFrom(final Class<?> protoClass, final ByteString byteString) 
            throws ReflectionsUtilException
    {
        final Method parseFromMethod;
        try
        {
            parseFromMethod = protoClass.getMethod("parseFrom", ByteString.class);
        }
        catch (final SecurityException exception)
        {
            throw new ReflectionsUtilException(exception);
        }
        catch (final NoSuchMethodException exception)
        {
            throw new ReflectionsUtilException(exception);
        }
        try
        {
            return (Message)parseFromMethod.invoke(null, byteString);
        }
        catch (final IllegalArgumentException exception)
        {
            throw new ReflectionsUtilException(exception);
        }
        catch (final IllegalAccessException exception)
        {
            throw new ReflectionsUtilException(exception);
        }
        catch (final InvocationTargetException exception)
        {
            throw new ReflectionsUtilException(exception);
        }
    }
public static Message invokeProtobuffParseFrom ( final Class < ? > protoClass , final ByteString byteString ) throws ReflectionsUtilException { final Method parseFromMethod ; try { parseFromMethod = protoClass . getMethod ( "parseFrom" , ByteString . class ) ; } catch ( final SecurityException exception ) { throw new ReflectionsUtilException ( exception ) ; } catch ( final NoSuchMethodException exception ) { throw new ReflectionsUtilException ( exception ) ; } try { return ( Message ) parseFromMethod . invoke ( null , byteString ) ; } catch ( final IllegalArgumentException exception ) { throw new ReflectionsUtilException ( exception ) ; } catch ( final IllegalAccessException exception ) { throw new ReflectionsUtilException ( exception ) ; } catch ( final InvocationTargetException exception ) { throw new ReflectionsUtilException ( exception ) ; } }
Method used to invoke the parseFrom method for a protocol buffer class.
Method used to invoke the parseFrom method for a protocol buffer class .