mil.dod.th.junit4.test.runner/src/mil/dod/th/ose/junit4xmltestrunner/IntegrationTestService.java
public static byte[] readResource(final String location) throws IOException
    {
        final URL url = m_Context.getBundleContext().getBundle().getResource(location);
        if (url == null)
        {
            throw new FileNotFoundException(location);
        }
        final ByteArrayOutputStream output = new ByteArrayOutputStream();
        final InputStream input = url.openStream();
        IOUtils.copy(input, output);
        return output.toByteArray();
    }
/**
     * Read a resource from the bundle providing this service.
     * 
     * @param location
     *      location within the bundle to read from
     * @return
     *      byte array representing the contents of the resource at the given location
     * @throws IOException
     *      if there is a failure to read the resource
     */
Read a resource from the bundle providing this service.

@param location
location within the bundle to read from
@return
byte array representing the contents of the resource at the given location
@throws IOException
if there is a failure to read the resource
Read a resource from the bundle providing this service . @param location location within the bundle to read from @return byte array representing the contents of the resource at the given location @throws IOException if there is a failure to read the resource
public static byte[] readResource(final String location) throws IOException
    {
        final URL url = m_Context.getBundleContext().getBundle().getResource(location);
        if (url == null)
        {
            throw new FileNotFoundException(location);
        }
        final ByteArrayOutputStream output = new ByteArrayOutputStream();
        final InputStream input = url.openStream();
        IOUtils.copy(input, output);
        return output.toByteArray();
    }
public static byte [ ] readResource ( final String location ) throws IOException { final URL url = m_Context . getBundleContext ( ) . getBundle ( ) . getResource ( location ) ; if ( url == null ) { throw new FileNotFoundException ( location ) ; } final ByteArrayOutputStream output = new ByteArrayOutputStream ( ) ; final InputStream input = url . openStream ( ) ; IOUtils . copy ( input , output ) ; return output . toByteArray ( ) ; }
Read a resource from the bundle providing this service.
Read a resource from the bundle providing this service .