content-parser/impl-poi/src/test/java/net/sf/mmm/content/parser/impl/poi/AbstractContentParserPoiTest.java
/**
   * This method parses the given resource.
   * 
   * @param parser is the {@link ContentParser} to test.
   * @param resourceName is the name of the resource to parse.
   * @param filesize is the expected size of the resource in bytes.
   * @return the {@link GenericContext} with the extracted metadata.
   * @throws Exception in case of an error.
   */
This method parses the given resource.

@param parser is the  ContentParser to test.
@param resourceName is the name of the resource to parse.
@param filesize is the expected size of the resource in bytes.
@return the  GenericContext with the extracted metadata.
@throws Exception in case of an error.
This method parses the given resource . @param parser is the ContentParser to test . @param resourceName is the name of the resource to parse . @param filesize is the expected size of the resource in bytes . @return the GenericContext with the extracted metadata . @throws Exception in case of an error .
protected GenericContext parse(ContentParser parser, String resourceName, long filesize) throws Exception {
    DataResource testResource = new ClasspathResource(AbstractContentParserPoiTest.class, resourceName, false);
    InputStream inputStream = testResource.openStream();
    try {
      return parser.parse(inputStream, filesize);
    } finally {
      inputStream.close();
    }
  }
protected GenericContext parse ( ContentParser parser , String resourceName , long filesize ) throws Exception { DataResource testResource = new ClasspathResource ( AbstractContentParserPoiTest . class , resourceName , false ) ; InputStream inputStream = testResource . openStream ( ) ; try { return parser . parse ( inputStream , filesize ) ; } finally { inputStream . close ( ) ; } }
This method parses the given resource.
This method parses the given resource .