public static <T> T getResourceWith(Class<?> contextClass, String resourceName, LineProcessor<T> lineProcessor) {
        checkArgument(contextClass != null, "Expected non-null contextClass");
        checkNotEmpty(resourceName);
        checkArgument(lineProcessor != null, "Expected non-null lineProcessor");

        URL url = getResource(contextClass, resourceName);
        try {
            return readLines(url, UTF_8, lineProcessor);
        } catch (IOException e) {
            throw new IllegalStateException(e);
        }
    }
public static < T > T getResourceWith ( Class < ? > contextClass , String resourceName , LineProcessor < T > lineProcessor ) { checkArgument ( contextClass != null , "Expected non-null contextClass" ) ; checkNotEmpty ( resourceName ) ; checkArgument ( lineProcessor != null , "Expected non-null lineProcessor" ) ; URL url = getResource ( contextClass , resourceName ) ; try { return readLines ( url , UTF_8 , lineProcessor ) ; } catch ( IOException e ) { throw new IllegalStateException ( e ) ; } }
@param contextClass  the class the resource is relative to
@param resourceName  the resource name
@param lineProcessor the line processor to use
@param <T>           the type of object to load into
@return the loaded object of type <tt>T</tt>
@see com.google.common.io.LineProcessor
@see com.google.common.io.Resources#getResource(String)
@see com.google.common.io.Resources#readLines(java.net.URL, java.nio.charset.Charset, LineProcessor)