|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtend.backend.util.ResourceToList
public final class ResourceToList
This class converts the contents of a resource to a list. It removes empty lines (i.e. lines containing
only whitespace), and it trims leading and trailing whitespace. It also removes comments, i.e. parts of
a line following a '#' character.
The contents of the file are read using the default locale of the platform.
Constructor Summary | |
---|---|
ResourceToList(java.io.InputStream in)
|
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getResult()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceToList(java.io.InputStream in)
in
- may be null, in which case the resulting list is empty.Method Detail |
---|
public java.util.List<java.lang.String> getResult()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |