Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.daisy.pipeline.nlp.impl;
 
 
 import  com.google.common.base.Charsets;
public class ResourceUtils {
	public static Collection<StringreadLines(String directoryString filename)
	        throws IOException {
		        .getResourceAsStream("/" + directory + "/" + filename), Charsets.UTF_8));
		ArrayList<Stringres = new ArrayList<String>();
		String line = reader.readLine();
		while (line != null) {
			String str = line.trim();
			if (str.length() > 0)
				res.add(str);
			line = reader.readLine();
		}
		return res;
	}
New to GrepCode? Check out our FAQ X