| Constructor and Description |
|---|
ExpectedSetOfStringsReader() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
readAsSet(String resource,
Class<?> cls)
Reads the file with the specifies resource name, calling
Class.getResourceAsStream(java.lang.String) to access the file. |
Set<String> |
readAsSet(String resource,
Class<?> cls,
Character commentCharacter)
Reads the file with the specifies resource name, calling
Class.getResourceAsStream(java.lang.String) to access the file. |
public Set<String> readAsSet(String resource, Class<?> cls) throws IOException
Class.getResourceAsStream(java.lang.String) to access the file.resource - the name of the file resource. Cannot be
null.cls - the class to use. If null, the instance of this
class will be used.Set of strings, guaranteed not null.IOException - if an error occurs reading the file.public Set<String> readAsSet(String resource, Class<?> cls, Character commentCharacter) throws IOException
Class.getResourceAsStream(java.lang.String) to access the file.resource - the name of the file resource. Cannot be
null.cls - the class to use. If null, the instance of this
class will be used.commentCharacter - the comment character to use. Set to
null if nothing should be interpreted as a comment.Set of strings, guaranteed not null.IOException - if an error occurs reading the file.Copyright © 2012–2018 Emory University. All rights reserved.